summaryrefslogtreecommitdiff
path: root/sys/net/if_gre.c
diff options
context:
space:
mode:
authorYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2012-04-14 09:39:48 +0000
committerYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2012-04-14 09:39:48 +0000
commit576433f81918e999d238d312ba1c6e5b71d36280 (patch)
tree23eae77aa3449ca9b39615863b93a77f6b54982c /sys/net/if_gre.c
parent852a7ed231a6296007177e8f5df9ec3978d4dab8 (diff)
Use DLT_LOOP for all tunneling interfaces.
Byte order adjustment for bpf was hidden behind bpf_mtap_af() and sizeof(u_int32_t) is used for length of the bpf header. tested by sebastia and mxb at alumni.chalmers.se. ok claudio
Diffstat (limited to 'sys/net/if_gre.c')
-rw-r--r--sys/net/if_gre.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c
index ce5956f180a..88f3ba3bd3c 100644
--- a/sys/net/if_gre.c
+++ b/sys/net/if_gre.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_gre.c,v 1.57 2011/07/12 15:23:50 jsg Exp $ */
+/* $OpenBSD: if_gre.c,v 1.58 2012/04/14 09:39:47 yasuoka Exp $ */
/* $NetBSD: if_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */
/*
@@ -156,8 +156,7 @@ gre_clone_create(struct if_clone *ifc, int unit)
if_alloc_sadl(&sc->sc_if);
#if NBPFILTER > 0
- bpfattach(&sc->sc_if.if_bpf, &sc->sc_if, DLT_NULL,
- sizeof(u_int32_t));
+ bpfattach(&sc->sc_if.if_bpf, &sc->sc_if, DLT_LOOP, sizeof(u_int32_t));
#endif
s = splnet();
LIST_INSERT_HEAD(&gre_softc_list, sc, sc_list);