diff options
| author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2000-08-12 18:14:13 +0000 |
|---|---|---|
| committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2000-08-12 18:14:13 +0000 |
| commit | 1469c4346f81ef50798af9380f498436dc9a8c9d (patch) | |
| tree | bba0bdc07e445c70daca8faad886ca54ceb1be62 /sys/netinet6/ip6_output.c | |
| parent | 7920b17f9a21c44b39982366c451eb0081bbdd13 (diff) | |
Notes
Diffstat (limited to 'sys/netinet6/ip6_output.c')
| -rw-r--r-- | sys/netinet6/ip6_output.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index a11475a53a47..64d1bb536d84 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); |
