Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/ip6_output.c
Show First 20 Lines • Show All 779 Lines • ▼ Show 20 Lines | #endif | ||||
} | } | ||||
/* Jump over all PFIL processing if hooks are not active. */ | /* Jump over all PFIL processing if hooks are not active. */ | ||||
if (!PFIL_HOOKED(&V_inet6_pfil_hook)) | if (!PFIL_HOOKED(&V_inet6_pfil_hook)) | ||||
goto passout; | goto passout; | ||||
odst = ip6->ip6_dst; | odst = ip6->ip6_dst; | ||||
/* Run through list of hooks for output packets. */ | /* Run through list of hooks for output packets. */ | ||||
error = pfil_run_hooks(&V_inet6_pfil_hook, &m, ifp, PFIL_OUT, inp); | error = pfil_run_hooks(&V_inet6_pfil_hook, &m, ifp, PFIL_OUT, 0, inp); | ||||
if (error != 0 || m == NULL) | if (error != 0 || m == NULL) | ||||
goto done; | goto done; | ||||
/* adjust pointer */ | /* adjust pointer */ | ||||
ip6 = mtod(m, struct ip6_hdr *); | ip6 = mtod(m, struct ip6_hdr *); | ||||
needfiblookup = 0; | needfiblookup = 0; | ||||
/* See if destination IP address was changed by packet filter. */ | /* See if destination IP address was changed by packet filter. */ | ||||
if (!IN6_ARE_ADDR_EQUAL(&odst, &ip6->ip6_dst)) { | if (!IN6_ARE_ADDR_EQUAL(&odst, &ip6->ip6_dst)) { | ||||
▲ Show 20 Lines • Show All 2,306 Lines • Show Last 20 Lines |