Deleted Added
full compact
if_gre.c (158416) if_gre.c (159180)
1/* $NetBSD: if_gre.c,v 1.49 2003/12/11 00:22:29 itojun Exp $ */
1/* $NetBSD: if_gre.c,v 1.49 2003/12/11 00:22:29 itojun Exp $ */
2/* $FreeBSD: head/sys/net/if_gre.c 158416 2006-05-11 00:53:43Z hsu $ */
2/* $FreeBSD: head/sys/net/if_gre.c 159180 2006-06-02 19:59:33Z csjp $ */
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 *

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

271 ip = NULL;
272
273 /* BPF writes need to be handled specially. */
274 if (dst->sa_family == AF_UNSPEC) {
275 bcopy(dst->sa_data, &af, sizeof(af));
276 dst->sa_family = af;
277 }
278
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 *

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

271 ip = NULL;
272
273 /* BPF writes need to be handled specially. */
274 if (dst->sa_family == AF_UNSPEC) {
275 bcopy(dst->sa_data, &af, sizeof(af));
276 dst->sa_family = af;
277 }
278
279 if (ifp->if_bpf) {
279 if (bpf_peers_present(ifp->if_bpf)) {
280 af = dst->sa_family;
281 bpf_mtap2(ifp->if_bpf, &af, sizeof(af), m);
282 }
283
284 m->m_flags &= ~(M_BCAST|M_MCAST);
285
286 if (sc->g_proto == IPPROTO_MOBILE) {
287 if (dst->sa_family == AF_INET) {

--- 520 unchanged lines hidden ---
280 af = dst->sa_family;
281 bpf_mtap2(ifp->if_bpf, &af, sizeof(af), m);
282 }
283
284 m->m_flags &= ~(M_BCAST|M_MCAST);
285
286 if (sc->g_proto == IPPROTO_MOBILE) {
287 if (dst->sa_family == AF_INET) {

--- 520 unchanged lines hidden ---