diff options
author | sobomax <sobomax@FreeBSD.org> | 2002-09-09 09:36:47 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2002-09-09 09:36:47 +0000 |
commit | b749867dfc38734d6fc33b4a12722924595c4bca (patch) | |
tree | 91cb82b351c53f7e50ed7ac5e5ece7b3a7ef38dc /sys/net/if_gif.c | |
parent | f10108092a33e4f4e384409c12daf02ab6b9cf5d (diff) | |
download | FreeBSD-src-b749867dfc38734d6fc33b4a12722924595c4bca.zip FreeBSD-src-b749867dfc38734d6fc33b4a12722924595c4bca.tar.gz |
Since from now on encap_input() also catches IPPROTO_MOBILE and IPPROTO_GRE
packets in addition to IPPROTO_IPV4 and IPPROTO_IPV6, explicitly specify
IPPROTO_IPV4 or IPPROTO_IPV6 instead of -1 when calling encap_attach().
MFC after: 28 days
(along with other if_gre changes)
Diffstat (limited to 'sys/net/if_gif.c')
-rw-r--r-- | sys/net/if_gif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c index fb81960..c5da47c 100644 --- a/sys/net/if_gif.c +++ b/sys/net/if_gif.c @@ -169,7 +169,7 @@ gif_clone_create(ifc, unit) sc->encap_cookie4 = sc->encap_cookie6 = NULL; #ifdef INET - sc->encap_cookie4 = encap_attach_func(AF_INET, -1, + sc->encap_cookie4 = encap_attach_func(AF_INET, IPPROTO_IPV4, gif_encapcheck, (struct protosw*)&in_gif_protosw, sc); if (sc->encap_cookie4 == NULL) { printf("%s: unable to attach encap4\n", if_name(&sc->gif_if)); @@ -178,7 +178,7 @@ gif_clone_create(ifc, unit) } #endif #ifdef INET6 - sc->encap_cookie6 = encap_attach_func(AF_INET6, -1, + sc->encap_cookie6 = encap_attach_func(AF_INET6, IPPROTO_IPV6, gif_encapcheck, (struct protosw *)&in6_gif_protosw, sc); if (sc->encap_cookie6 == NULL) { if (sc->encap_cookie4) { |