Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/ip_output.c
Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Lines | ip_output_pfil(struct mbuf **mp, struct ifnet *ifp, struct inpcb *inp, | ||||
struct in_addr odst; | struct in_addr odst; | ||||
struct ip *ip; | struct ip *ip; | ||||
m = *mp; | m = *mp; | ||||
ip = mtod(m, struct ip *); | ip = mtod(m, struct ip *); | ||||
/* Run through list of hooks for output packets. */ | /* Run through list of hooks for output packets. */ | ||||
odst.s_addr = ip->ip_dst.s_addr; | odst.s_addr = ip->ip_dst.s_addr; | ||||
*error = pfil_run_hooks(&V_inet_pfil_hook, mp, ifp, PFIL_OUT, inp); | *error = pfil_run_hooks(&V_inet_pfil_hook, mp, ifp, PFIL_OUT, 0, inp); | ||||
m = *mp; | m = *mp; | ||||
if ((*error) != 0 || m == NULL) | if ((*error) != 0 || m == NULL) | ||||
return 1; /* Finished */ | return 1; /* Finished */ | ||||
ip = mtod(m, struct ip *); | ip = mtod(m, struct ip *); | ||||
/* See if destination IP address was changed by packet filter. */ | /* See if destination IP address was changed by packet filter. */ | ||||
if (odst.s_addr != ip->ip_dst.s_addr) { | if (odst.s_addr != ip->ip_dst.s_addr) { | ||||
▲ Show 20 Lines • Show All 1,307 Lines • Show Last 20 Lines |