if_gif.c (11e9b8bad115cf9799076d3add8824862b038563) if_gif.c (4382b0681eaa3c319464d2669d45da46dde04637)
1/* $FreeBSD$ */
2/* $KAME: if_gif.c,v 1.87 2001/10/19 08:50:27 itojun Exp $ */
3
4/*-
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

502
503void
504gif_input(m, af, ifp)
505 struct mbuf *m;
506 int af;
507 struct ifnet *ifp;
508{
509 int isr, n;
1/* $FreeBSD$ */
2/* $KAME: if_gif.c,v 1.87 2001/10/19 08:50:27 itojun Exp $ */
3
4/*-
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

502
503void
504gif_input(m, af, ifp)
505 struct mbuf *m;
506 int af;
507 struct ifnet *ifp;
508{
509 int isr, n;
510 struct gif_softc *sc = ifp->if_softc;
510 struct gif_softc *sc;
511 struct etherip_header *eip;
512 struct ether_header *eh;
513 struct ifnet *oldifp;
514
515 if (ifp == NULL) {
516 /* just in case */
517 m_freem(m);
518 return;
519 }
511 struct etherip_header *eip;
512 struct ether_header *eh;
513 struct ifnet *oldifp;
514
515 if (ifp == NULL) {
516 /* just in case */
517 m_freem(m);
518 return;
519 }
520
520 sc = ifp->if_softc;
521 m->m_pkthdr.rcvif = ifp;
522
523#ifdef MAC
524 mac_ifnet_create_mbuf(ifp, m);
525#endif
526
527 if (bpf_peers_present(ifp->if_bpf)) {
528 u_int32_t af1 = af;

--- 515 unchanged lines hidden ---
521 m->m_pkthdr.rcvif = ifp;
522
523#ifdef MAC
524 mac_ifnet_create_mbuf(ifp, m);
525#endif
526
527 if (bpf_peers_present(ifp->if_bpf)) {
528 u_int32_t af1 = af;

--- 515 unchanged lines hidden ---