Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/ip_input.c
Show First 20 Lines • Show All 594 Lines • ▼ Show 20 Lines | #endif | ||||
* ip_forward to do the right thing. | * ip_forward to do the right thing. | ||||
*/ | */ | ||||
/* Jump over all PFIL processing if hooks are not active. */ | /* Jump over all PFIL processing if hooks are not active. */ | ||||
if (!PFIL_HOOKED(&V_inet_pfil_hook)) | if (!PFIL_HOOKED(&V_inet_pfil_hook)) | ||||
goto passin; | goto passin; | ||||
odst = ip->ip_dst; | odst = ip->ip_dst; | ||||
if (pfil_run_hooks(&V_inet_pfil_hook, &m, ifp, PFIL_IN, NULL) != 0) | if (pfil_run_hooks(&V_inet_pfil_hook, &m, ifp, PFIL_IN, 0, NULL) != 0) | ||||
return; | return; | ||||
if (m == NULL) /* consumed by filter */ | if (m == NULL) /* consumed by filter */ | ||||
return; | return; | ||||
ip = mtod(m, struct ip *); | ip = mtod(m, struct ip *); | ||||
dchg = (odst.s_addr != ip->ip_dst.s_addr); | dchg = (odst.s_addr != ip->ip_dst.s_addr); | ||||
ifp = m->m_pkthdr.rcvif; | ifp = m->m_pkthdr.rcvif; | ||||
▲ Show 20 Lines • Show All 822 Lines • Show Last 20 Lines |