From 1d3bcf35838a6869d764a350ee2f90ee0f54edfc Mon Sep 17 00:00:00 2001 From: Bruce M Simpson Date: Tue, 9 Dec 2003 06:39:25 +0000 Subject: [PATCH] Declare gre(4) as being of IFT_TUNNEL, Like God Intended. Suggested by: fenner --- sys/net/if_gre.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c index 4c5f8d4623f6..3d1adad0e972 100644 --- a/sys/net/if_gre.c +++ b/sys/net/if_gre.c @@ -127,7 +127,7 @@ static const struct protosw in_mobile_protosw = #endif SYSCTL_DECL(_net_link); -SYSCTL_NODE(_net_link, IFT_OTHER, gre, CTLFLAG_RW, 0, +SYSCTL_NODE(_net_link, IFT_TUNNEL, gre, CTLFLAG_RW, 0, "Generic Routing Encapsulation"); #ifndef MAX_GRE_NEST /* @@ -166,7 +166,7 @@ gre_clone_create(ifc, unit) if_initname(&sc->sc_if, ifc->ifc_name, unit); sc->sc_if.if_softc = sc; sc->sc_if.if_snd.ifq_maxlen = IFQ_MAXLEN; - sc->sc_if.if_type = IFT_OTHER; + sc->sc_if.if_type = IFT_TUNNEL; sc->sc_if.if_addrlen = 0; sc->sc_if.if_hdrlen = 24; /* IP + GRE */ sc->sc_if.if_mtu = GREMTU;