spx_usrreq.c (11947) | spx_usrreq.c (11991) |
---|---|
1/* 2 * Copyright (c) 1995, Mike Mitchell 3 * Copyright (c) 1984, 1985, 1986, 1987, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 17 unchanged lines hidden (view full) --- 26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * | 1/* 2 * Copyright (c) 1995, Mike Mitchell 3 * Copyright (c) 1984, 1985, 1986, 1987, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 17 unchanged lines hidden (view full) --- 26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * |
34 * @(#)spx_usrreq.h | 34 * @(#)$Id$ |
35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/malloc.h> 40#include <sys/mbuf.h> 41#include <sys/protosw.h> 42#include <sys/socket.h> --- 572 unchanged lines hidden (view full) --- 615 na = &errp->ipx_err_ipx.ipx_dna; 616 type = errp->ipx_err_num; 617 type = ntohs((u_short)type); 618 break; 619 } 620 switch (type) { 621 622 case IPX_ERR_UNREACH_HOST: | 35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/malloc.h> 40#include <sys/mbuf.h> 41#include <sys/protosw.h> 42#include <sys/socket.h> --- 572 unchanged lines hidden (view full) --- 615 na = &errp->ipx_err_ipx.ipx_dna; 616 type = errp->ipx_err_num; 617 type = ntohs((u_short)type); 618 break; 619 } 620 switch (type) { 621 622 case IPX_ERR_UNREACH_HOST: |
623 ipx_pcbnotify(na, (int)ipxctlerrmap[cmd], spx_abort, (long) 0); | 623 ipx_pcbnotify(na, (int)ipxctlerrmap[cmd], spx_abort, NULL); |
624 break; 625 626 case IPX_ERR_TOO_BIG: 627 case IPX_ERR_NOSOCK: 628 ipxp = ipx_pcblookup(na, errp->ipx_err_ipx.ipx_sna.x_port, 629 IPX_WILDCARD); 630 if (ipxp) { 631 if(ipxp->ipxp_pcb) 632 (void) spx_drop((struct spxpcb *)ipxp->ipxp_pcb, 633 (int)ipxctlerrmap[cmd]); 634 else 635 (void) ipx_drop(ipxp, (int)ipxctlerrmap[cmd]); 636 } 637 break; 638 639 case IPX_ERR_FULLUP: | 624 break; 625 626 case IPX_ERR_TOO_BIG: 627 case IPX_ERR_NOSOCK: 628 ipxp = ipx_pcblookup(na, errp->ipx_err_ipx.ipx_sna.x_port, 629 IPX_WILDCARD); 630 if (ipxp) { 631 if(ipxp->ipxp_pcb) 632 (void) spx_drop((struct spxpcb *)ipxp->ipxp_pcb, 633 (int)ipxctlerrmap[cmd]); 634 else 635 (void) ipx_drop(ipxp, (int)ipxctlerrmap[cmd]); 636 } 637 break; 638 639 case IPX_ERR_FULLUP: |
640 ipx_pcbnotify(na, 0, spx_quench, (long) 0); | 640 ipx_pcbnotify(na, 0, spx_quench, NULL); |
641 break; 642 } 643} 644/* 645 * When a source quench is received, close congestion window 646 * to one packet. We will gradually open it again as we proceed. 647 */ 648void --- 1166 unchanged lines hidden --- | 641 break; 642 } 643} 644/* 645 * When a source quench is received, close congestion window 646 * to one packet. We will gradually open it again as we proceed. 647 */ 648void --- 1166 unchanged lines hidden --- |