Deleted Added
full compact
ipx_input.c (93818) ipx_input.c (109623)
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:

--- 19 unchanged lines hidden (view full) ---

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 * @(#)ipx_input.c
35 *
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:

--- 19 unchanged lines hidden (view full) ---

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 * @(#)ipx_input.c
35 *
36 * $FreeBSD: head/sys/netipx/ipx_input.c 93818 2002-04-04 21:03:38Z jhb $
36 * $FreeBSD: head/sys/netipx/ipx_input.c 109623 2003-01-21 08:56:16Z alfred $
37 */
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/mbuf.h>
42#include <sys/protosw.h>
43#include <sys/socket.h>
44#include <sys/kernel.h>

--- 433 unchanged lines hidden (view full) ---

478 * Give any raw listeners a crack at the packet
479 */
480 for (ipxp = ipxrawpcb.ipxp_next; ipxp != &ipxrawpcb;
481 ipxp = ipxp->ipxp_next) {
482 struct mbuf *m0 = m_copy(m, 0, (int)M_COPYALL);
483 if (m0 != NULL) {
484 register struct ipx *ipx;
485
37 */
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/mbuf.h>
42#include <sys/protosw.h>
43#include <sys/socket.h>
44#include <sys/kernel.h>

--- 433 unchanged lines hidden (view full) ---

478 * Give any raw listeners a crack at the packet
479 */
480 for (ipxp = ipxrawpcb.ipxp_next; ipxp != &ipxrawpcb;
481 ipxp = ipxp->ipxp_next) {
482 struct mbuf *m0 = m_copy(m, 0, (int)M_COPYALL);
483 if (m0 != NULL) {
484 register struct ipx *ipx;
485
486 M_PREPEND(m0, sizeof(*ipx), M_DONTWAIT);
486 M_PREPEND(m0, sizeof(*ipx), M_NOWAIT);
487 if (m0 == NULL)
488 continue;
489 ipx = mtod(m0, struct ipx *);
490 ipx->ipx_sna.x_net = ipx_zeronet;
491 for (ia = ipx_ifaddr; ia != NULL; ia = ia->ia_next)
492 if (ifp == ia->ia_ifp)
493 break;
494 if (ia == NULL)

--- 17 unchanged lines hidden ---
487 if (m0 == NULL)
488 continue;
489 ipx = mtod(m0, struct ipx *);
490 ipx->ipx_sna.x_net = ipx_zeronet;
491 for (ia = ipx_ifaddr; ia != NULL; ia = ia->ia_next)
492 if (ifp == ia->ia_ifp)
493 break;
494 if (ia == NULL)

--- 17 unchanged lines hidden ---