ipx_input.c (119995) | ipx_input.c (122320) |
---|---|
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: --- 21 unchanged lines hidden (view full) --- 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 * @(#)ipx_input.c 35 */ 36 37#include <sys/cdefs.h> | 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: --- 21 unchanged lines hidden (view full) --- 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 * @(#)ipx_input.c 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/sys/netipx/ipx_input.c 119995 2003-09-11 21:40:21Z ru $"); | 38__FBSDID("$FreeBSD: head/sys/netipx/ipx_input.c 122320 2003-11-08 22:28:40Z sam $"); |
39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/mbuf.h> 43#include <sys/protosw.h> 44#include <sys/socket.h> 45#include <sys/kernel.h> 46#include <sys/random.h> --- 67 unchanged lines hidden (view full) --- 114 ipx_netmask.sipx_addr.x_net = ipx_broadnet; 115 116 ipx_hostmask.sipx_len = 12; 117 ipx_hostmask.sipx_addr.x_net = ipx_broadnet; 118 ipx_hostmask.sipx_addr.x_host = ipx_broadhost; 119 120 ipxintrq.ifq_maxlen = ipxqmaxlen; 121 mtx_init(&ipxintrq.ifq_mtx, "ipx_inq", NULL, MTX_DEF); | 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/mbuf.h> 43#include <sys/protosw.h> 44#include <sys/socket.h> 45#include <sys/kernel.h> 46#include <sys/random.h> --- 67 unchanged lines hidden (view full) --- 114 ipx_netmask.sipx_addr.x_net = ipx_broadnet; 115 116 ipx_hostmask.sipx_len = 12; 117 ipx_hostmask.sipx_addr.x_net = ipx_broadnet; 118 ipx_hostmask.sipx_addr.x_host = ipx_broadhost; 119 120 ipxintrq.ifq_maxlen = ipxqmaxlen; 121 mtx_init(&ipxintrq.ifq_mtx, "ipx_inq", NULL, MTX_DEF); |
122 netisr_register(NETISR_IPX, ipxintr, &ipxintrq); | 122 netisr_register(NETISR_IPX, ipxintr, &ipxintrq, 0); |
123} 124 125/* 126 * IPX input routine. Pass to next level. 127 */ 128static void 129ipxintr(struct mbuf *m) 130{ 131 register struct ipx *ipx; 132 register struct ipxpcb *ipxp; 133 struct ipx_ifaddr *ia; 134 int len; 135 | 123} 124 125/* 126 * IPX input routine. Pass to next level. 127 */ 128static void 129ipxintr(struct mbuf *m) 130{ 131 register struct ipx *ipx; 132 register struct ipxpcb *ipxp; 133 struct ipx_ifaddr *ia; 134 int len; 135 |
136 GIANT_REQUIRED; 137 |
|
136 /* 137 * If no IPX addresses have been set yet but the interfaces 138 * are receiving, can't do anything with incoming packets yet. 139 */ 140 if (ipx_ifaddr == NULL) 141 goto bad; 142 143 ipxstat.ipxs_total++; --- 356 unchanged lines hidden --- | 138 /* 139 * If no IPX addresses have been set yet but the interfaces 140 * are receiving, can't do anything with incoming packets yet. 141 */ 142 if (ipx_ifaddr == NULL) 143 goto bad; 144 145 ipxstat.ipxs_total++; --- 356 unchanged lines hidden --- |