if_gre.c (123338) | if_gre.c (123922) |
---|---|
1/* $NetBSD: if_gre.c,v 1.42 2002/08/14 00:23:27 itojun Exp $ */ | 1/* $NetBSD: if_gre.c,v 1.42 2002/08/14 00:23:27 itojun Exp $ */ |
2/* $FreeBSD: head/sys/net/if_gre.c 123338 2003-12-09 06:39:25Z bms $ */ | 2/* $FreeBSD: head/sys/net/if_gre.c 123922 2003-12-28 03:56:00Z sam $ */ |
3 4/* 5 * Copyright (c) 1998 The NetBSD Foundation, Inc. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to The NetBSD Foundation 9 * by Heiko W.Rupp <hwr@pilhuhn.de> 10 * --- 224 unchanged lines hidden (view full) --- 235 goto end; 236 } 237 238 gh = NULL; 239 ip = NULL; 240 osrc = 0; 241 242 if (ifp->if_bpf) { | 3 4/* 5 * Copyright (c) 1998 The NetBSD Foundation, Inc. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to The NetBSD Foundation 9 * by Heiko W.Rupp <hwr@pilhuhn.de> 10 * --- 224 unchanged lines hidden (view full) --- 235 goto end; 236 } 237 238 gh = NULL; 239 ip = NULL; 240 osrc = 0; 241 242 if (ifp->if_bpf) { |
243 /* see comment of other if_foo.c files */ 244 struct mbuf m0; | |
245 u_int32_t af = dst->sa_family; | 243 u_int32_t af = dst->sa_family; |
246 247 m0.m_next = m; 248 m0.m_len = 4; 249 m0.m_data = (char *)⁡ 250 251 BPF_MTAP(ifp, &m0); | 244 bpf_mtap2(ifp->if_bpf, &af, sizeof(af), m); |
252 } 253 254 m->m_flags &= ~(M_BCAST|M_MCAST); 255 256 if (sc->g_proto == IPPROTO_MOBILE) { 257 if (dst->sa_family == AF_INET) { 258 struct mbuf *m0; 259 int msiz; --- 497 unchanged lines hidden --- | 245 } 246 247 m->m_flags &= ~(M_BCAST|M_MCAST); 248 249 if (sc->g_proto == IPPROTO_MOBILE) { 250 if (dst->sa_family == AF_INET) { 251 struct mbuf *m0; 252 int msiz; --- 497 unchanged lines hidden --- |