diff options
author | bms <bms@FreeBSD.org> | 2003-12-09 06:39:25 +0000 |
---|---|---|
committer | bms <bms@FreeBSD.org> | 2003-12-09 06:39:25 +0000 |
commit | e3c53b37aeae9971384a39009e4e9936fb4a0b32 (patch) | |
tree | 7ae87bd361ddf5d364bcfa2aff5bc606c33f9d11 | |
parent | 332baaba1c9dd7eb611b596e021b6dd67aafd85e (diff) | |
download | FreeBSD-src-e3c53b37aeae9971384a39009e4e9936fb4a0b32.zip FreeBSD-src-e3c53b37aeae9971384a39009e4e9936fb4a0b32.tar.gz |
Declare gre(4) as being of IFT_TUNNEL, Like God Intended.
Suggested by: fenner
-rw-r--r-- | sys/net/if_gre.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c index 4c5f8d46..3d1adad 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; |