aboutsummaryrefslogtreecommitdiff
path: root/sys/net/if_gif.c
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2002-09-26 07:22:29 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2002-09-26 07:22:29 +0000
commit9c0d6e4c6dd10b82eb22849ea38af58716c98250 (patch)
treeeb495550d929291dccdf54f21cd4238c6626ffc3 /sys/net/if_gif.c
parent01a97b5808e1303e2289f8a8afc893dd213f917b (diff)
downloadsrc-9c0d6e4c6dd10b82eb22849ea38af58716c98250.tar.gz
src-9c0d6e4c6dd10b82eb22849ea38af58716c98250.zip
Revert 1.27, as it breaks IPv6 over IPv4 tunnels.
Submitted by: Mark Huizer <xaa@timewasters.nl>, ume
Notes
Notes: svn path=/head/; revision=103994
Diffstat (limited to 'sys/net/if_gif.c')
-rw-r--r--sys/net/if_gif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c
index 9804e0bd1497..43bf0f4e3d1d 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, IPPROTO_IPV4,
+ sc->encap_cookie4 = encap_attach_func(AF_INET, -1,
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, IPPROTO_IPV6,
+ sc->encap_cookie6 = encap_attach_func(AF_INET6, -1,
gif_encapcheck, (struct protosw *)&in6_gif_protosw, sc);
if (sc->encap_cookie6 == NULL) {
if (sc->encap_cookie4) {