diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2018-02-22 09:47:13 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2018-02-22 09:47:13 +0000 |
commit | be668d1186bc38af8e23f0632d1bf7fdd5381649 (patch) | |
tree | 26a659d328bf58e8e06ed6abd59ecd46f7ce3963 /sys/net/if_gre.c | |
parent | c10bd60d794344a10307c0fe1cc3f34462bc4890 (diff) |
remove some debug code in nvgre
Diffstat (limited to 'sys/net/if_gre.c')
-rw-r--r-- | sys/net/if_gre.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c index 2e33fc012c1..91fbbf32d0e 100644 --- a/sys/net/if_gre.c +++ b/sys/net/if_gre.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_gre.c,v 1.111 2018/02/22 07:33:24 dlg Exp $ */ +/* $OpenBSD: if_gre.c,v 1.112 2018/02/22 09:47:12 dlg Exp $ */ /* $NetBSD: if_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */ /* @@ -356,8 +356,6 @@ struct nvgre_softc { unsigned int sc_ether_max; int sc_ether_tmo; struct timeout sc_ether_age; - - caddr_t sc_if_bpf; }; RBT_HEAD(nvgre_ucast_tree, nvgre_softc); @@ -598,10 +596,6 @@ nvgre_clone_create(struct if_clone *ifc, int unit) if_attach(ifp); ether_ifattach(ifp); -#if NBPFILTER > 0 - bpfattach(&sc->sc_if_bpf, ifp, DLT_LOOP, sizeof(uint32_t)); -#endif - return (0); } @@ -1145,14 +1139,6 @@ nvgre_input(const struct gre_tunnel *key, struct mbuf *m, int hlen) if (sc == NULL) return (-1); -#if NBPFILTER > 0 - { - caddr_t if_bpf = sc->sc_if_bpf; - if (if_bpf) - bpf_mtap_af(if_bpf, key->t_af, m, BPF_DIRECTION_IN); - } -#endif - /* it's ours now */ m = gre_ether_align(m, hlen); if (m == NULL) @@ -2699,12 +2685,6 @@ nvgre_start(struct ifnet *ifp) if (m == NULL) continue; -#if NBPFILTER > 0 - if_bpf = sc->sc_if_bpf; - if (if_bpf) - bpf_mtap_af(if_bpf, tunnel->t_af, m, BPF_DIRECTION_OUT); -#endif - m->m_flags &= ~(M_BCAST|M_MCAST); m->m_pkthdr.ph_rtableid = tunnel->t_rtableid; |