Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/ip6_input.c
Show First 20 Lines • Show All 759 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 passin; | goto passin; | ||||
odst = ip6->ip6_dst; | odst = ip6->ip6_dst; | ||||
if (pfil_run_hooks(&V_inet6_pfil_hook, &m, | if (pfil_run_hooks(&V_inet6_pfil_hook, &m, | ||||
m->m_pkthdr.rcvif, PFIL_IN, NULL)) | m->m_pkthdr.rcvif, PFIL_IN, 0, NULL)) | ||||
return; | return; | ||||
if (m == NULL) /* consumed by filter */ | if (m == NULL) /* consumed by filter */ | ||||
return; | return; | ||||
ip6 = mtod(m, struct ip6_hdr *); | ip6 = mtod(m, struct ip6_hdr *); | ||||
srcrt = !IN6_ARE_ADDR_EQUAL(&odst, &ip6->ip6_dst); | srcrt = !IN6_ARE_ADDR_EQUAL(&odst, &ip6->ip6_dst); | ||||
if (m->m_flags & M_FASTFWD_OURS) { | if (m->m_flags & M_FASTFWD_OURS) { | ||||
m->m_flags &= ~M_FASTFWD_OURS; | m->m_flags &= ~M_FASTFWD_OURS; | ||||
▲ Show 20 Lines • Show All 1,101 Lines • Show Last 20 Lines |