Deleted Added
full compact
if_stf.c (105580) if_stf.c (106939)
1/* $FreeBSD: head/sys/net/if_stf.c 105580 2002-10-20 22:39:55Z rwatson $ */
1/* $FreeBSD: head/sys/net/if_stf.c 106939 2002-11-15 00:00:15Z sam $ */
2/* $KAME: if_stf.c,v 1.73 2001/12/03 11:08:30 keiichi Exp $ */
3
4/*
5 * Copyright (C) 2000 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

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

425 struct mbuf m0;
426 u_int32_t af = AF_INET6;
427
428 m0.m_next = m;
429 m0.m_len = 4;
430 m0.m_data = (char *)⁡
431
432#ifdef HAVE_OLD_BPF
2/* $KAME: if_stf.c,v 1.73 2001/12/03 11:08:30 keiichi Exp $ */
3
4/*
5 * Copyright (C) 2000 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

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

425 struct mbuf m0;
426 u_int32_t af = AF_INET6;
427
428 m0.m_next = m;
429 m0.m_len = 4;
430 m0.m_data = (char *)⁡
431
432#ifdef HAVE_OLD_BPF
433 bpf_mtap(ifp, &m0);
433 BPF_MTAP(ifp, &m0);
434#else
435 bpf_mtap(ifp->if_bpf, &m0);
436#endif
437 }
438#endif /*NBPFILTER > 0*/
439
440 M_PREPEND(m, sizeof(struct ip), M_DONTWAIT);
441 if (m && m->m_len < sizeof(struct ip))

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

679 struct mbuf m0;
680 u_int32_t af = AF_INET6;
681
682 m0.m_next = m;
683 m0.m_len = 4;
684 m0.m_data = (char *)&af;
685
686#ifdef HAVE_OLD_BPF
434#else
435 bpf_mtap(ifp->if_bpf, &m0);
436#endif
437 }
438#endif /*NBPFILTER > 0*/
439
440 M_PREPEND(m, sizeof(struct ip), M_DONTWAIT);
441 if (m && m->m_len < sizeof(struct ip))

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

679 struct mbuf m0;
680 u_int32_t af = AF_INET6;
681
682 m0.m_next = m;
683 m0.m_len = 4;
684 m0.m_data = (char *)&af;
685
686#ifdef HAVE_OLD_BPF
687 bpf_mtap(ifp, &m0);
687 BPF_MTAP(ifp, &m0);
688#else
689 bpf_mtap(ifp->if_bpf, &m0);
690#endif
691 }
692
693 /*
694 * Put the packet to the network layer input queue according to the
695 * specified address family.

--- 70 unchanged lines hidden ---
688#else
689 bpf_mtap(ifp->if_bpf, &m0);
690#endif
691 }
692
693 /*
694 * Put the packet to the network layer input queue according to the
695 * specified address family.

--- 70 unchanged lines hidden ---