summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_mroute.c
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2002-09-09 09:36:47 +0000
committersobomax <sobomax@FreeBSD.org>2002-09-09 09:36:47 +0000
commitb749867dfc38734d6fc33b4a12722924595c4bca (patch)
tree91cb82b351c53f7e50ed7ac5e5ece7b3a7ef38dc /sys/netinet/ip_mroute.c
parentf10108092a33e4f4e384409c12daf02ab6b9cf5d (diff)
downloadFreeBSD-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/netinet/ip_mroute.c')
-rw-r--r--sys/netinet/ip_mroute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_mroute.c b/sys/netinet/ip_mroute.c
index 8da8339..b0f2eab 100644
--- a/sys/netinet/ip_mroute.c
+++ b/sys/netinet/ip_mroute.c
@@ -768,7 +768,7 @@ add_vif(vifcp)
* to encapsulated packets.
*/
if (encap_cookie == NULL) {
- encap_cookie = encap_attach_func(AF_INET, -1,
+ encap_cookie = encap_attach_func(AF_INET, IPPROTO_IPV4,
mroute_encapcheck,
(struct protosw *)&mroute_encap_protosw, NULL);
OpenPOWER on IntegriCloud