summaryrefslogtreecommitdiffstats
path: root/sys/modules/if_gre
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2003-11-14 20:58:00 +0000
committerbms <bms@FreeBSD.org>2003-11-14 20:58:00 +0000
commit134bbb89c8f75adda55150ff226f7cbb0a293090 (patch)
treee3d3ff56cbe6c2f51a779e753ade008e3e2c2465 /sys/modules/if_gre
parent5b076fe9da6e7bfd69aca6e09e64d75d72477b92 (diff)
downloadFreeBSD-src-134bbb89c8f75adda55150ff226f7cbb0a293090.zip
FreeBSD-src-134bbb89c8f75adda55150ff226f7cbb0a293090.tar.gz
Fix a bug whereby the physical endpoints of a gre(4) tunnel would not
be printed, if the module were loaded into a kernel which had INET6 enabled. The gre(4) driver does not use INET6, nor is it specified for IPv6. The tunnel_status() function in ifconfig(8) is somewhat overzealous and assumes that all tunnel interfaces speak KAME ifioctls. This fix follows the path of least resistance, by teaching gre(4) about the two KAME ifioctls concerned. PR: bin/56341
Diffstat (limited to 'sys/modules/if_gre')
-rw-r--r--sys/modules/if_gre/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/modules/if_gre/Makefile b/sys/modules/if_gre/Makefile
index d2a719d..b7b7089 100644
--- a/sys/modules/if_gre/Makefile
+++ b/sys/modules/if_gre/Makefile
@@ -1,13 +1,16 @@
# $FreeBSD$
-.PATH: ${.CURDIR}/../../net ${.CURDIR}/../../netinet
+.PATH: ${.CURDIR}/../../net ${.CURDIR}/../../netinet ${.CURDIR}/../../netinet6
KMOD= if_gre
-SRCS= if_gre.c ip_gre.c opt_inet.h opt_atalk.h
+SRCS= if_gre.c ip_gre.c opt_inet.h opt_inet6.h opt_atalk.h
opt_inet.h:
echo "#define INET 1" > ${.TARGET}
+opt_inet6.h:
+ echo "#define INET6 1" > ${.TARGET}
+
opt_atalk.h:
echo "#define NETATALK 1" > ${.TARGET}
OpenPOWER on IntegriCloud