summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2000-08-12 18:14:13 +0000
committerume <ume@FreeBSD.org>2000-08-12 18:14:13 +0000
commit200a52ad9383d401e4a5097e80501b6d8f18dfd4 (patch)
treeaf45c0a9b6d2e89f159388fd8a3448973be86d18 /sys/netinet6
parente72bf3c884aecb5f14d7f5bdafc9b1e5af9e78f5 (diff)
downloadFreeBSD-src-200a52ad9383d401e4a5097e80501b6d8f18dfd4.zip
FreeBSD-src-200a52ad9383d401e4a5097e80501b6d8f18dfd4.tar.gz
Make compilable with -DIPFILTER.
Because I don't use ipfilter at all, this is not tested. I don't know if ipfilter is work for IPv6. Submitted by: yoshiaki@kt.rim.or.jp
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/ip6_input.c2
-rw-r--r--sys/netinet6/ip6_output.c7
2 files changed, 7 insertions, 2 deletions
diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c
index 709276d..6bcaa05 100644
--- a/sys/netinet6/ip6_input.c
+++ b/sys/netinet6/ip6_input.c
@@ -309,7 +309,7 @@ ip6_input(m)
* in the list may have previously cleared it.
*/
m0 = m;
- pfh = pfil_hook_get(PFIL_IN, &inetsw[ip_protox[IPPROTO_IPV6]].pr_pfh);
+ pfh = pfil_hook_get(PFIL_IN, &inet6sw[ip6_protox[IPPROTO_IPV6]].pr_pfh);
for (; pfh; pfh = pfh->pfil_link.tqe_next)
if (pfh->pfil_func) {
rv = pfh->pfil_func(ip6, sizeof(*ip6),
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c
index a11475a..64d1bb5 100644
--- a/sys/netinet6/ip6_output.c
+++ b/sys/netinet6/ip6_output.c
@@ -110,6 +110,8 @@
#include <netinet6/ip6_fw.h>
#endif
+#include <netinet6/ip6protosw.h>
+
static MALLOC_DEFINE(M_IPMOPTS, "ip6_moptions", "internet multicast options");
struct ip6_exthdrs {
@@ -130,6 +132,9 @@ static int ip6_insertfraghdr __P((struct mbuf *, struct mbuf *, int,
static int ip6_insert_jumboopt __P((struct ip6_exthdrs *, u_int32_t));
static int ip6_splithdr __P((struct mbuf *, struct ip6_exthdrs *));
+extern struct ip6protosw inet6sw[];
+extern u_char ip6_protox[IPPROTO_MAX];
+
/*
* IP6 output. The packet in mbuf chain m contains a skeletal IP6
* header (with pri, len, nxt, hlim, src, dst).
@@ -854,7 +859,7 @@ skip_ipsec2:;
* Run through list of hooks for output packets.
*/
m1 = m;
- pfh = pfil_hook_get(PFIL_OUT, &inetsw[ip_protox[IPPROTO_IPV6]].pr_pfh);
+ pfh = pfil_hook_get(PFIL_OUT, &inet6sw[ip6_protox[IPPROTO_IPV6]].pr_pfh);
for (; pfh; pfh = pfh->pfil_link.tqe_next)
if (pfh->pfil_func) {
rv = pfh->pfil_func(ip6, sizeof(*ip6), ifp, 1, &m1);
OpenPOWER on IntegriCloud