| version 1.93.2.4, 2001/01/05 17:36:55 |
version 1.93.2.5, 2001/02/11 19:17:14 |
| Line 471 ip_input(struct mbuf *m) |
|
| Line 471 ip_input(struct mbuf *m) |
|
| * Note that filters must _never_ set this flag, as another filter |
* Note that filters must _never_ set this flag, as another filter |
| * in the list may have previously cleared it. |
* in the list may have previously cleared it. |
| */ |
*/ |
| if (pfil_run_hooks(&inet_pfil_hook, &m, m->m_pkthdr.rcvif, |
/* |
| PFIL_IN) != 0) |
* let ipfilter look at packet on the wire, |
| return; |
* not the decapsulated packet. |
| if (m == NULL) |
*/ |
| |
#ifdef IPSEC |
| |
if (!ipsec_gethist(m, NULL)) |
| |
#else |
| |
if (1) |
| |
#endif |
| |
{ |
| |
if (pfil_run_hooks(&inet_pfil_hook, &m, m->m_pkthdr.rcvif, |
| |
PFIL_IN) != 0) |
| return; |
return; |
| ip = mtod(m, struct ip *); |
if (m == NULL) |
| |
return; |
| |
ip = mtod(m, struct ip *); |
| |
} |
| #endif /* PFIL_HOOKS */ |
#endif /* PFIL_HOOKS */ |
| |
|
| #ifdef ALTQ |
#ifdef ALTQ |
| Line 1452 ip_forward(m, srcrt) |
|
| Line 1463 ip_forward(m, srcrt) |
|
| |
|
| #ifdef IPSEC |
#ifdef IPSEC |
| /* Don't lookup socket in forwading case */ |
/* Don't lookup socket in forwading case */ |
| ipsec_setsocket(m, NULL); |
(void)ipsec_setsocket(m, NULL); |
| #endif |
#endif |
| error = ip_output(m, (struct mbuf *)0, &ipforward_rt, |
error = ip_output(m, (struct mbuf *)0, &ipforward_rt, |
| (IP_FORWARDING | (ip_directedbcast ? IP_ALLOWBROADCAST : 0)), 0); |
(IP_FORWARDING | (ip_directedbcast ? IP_ALLOWBROADCAST : 0)), 0); |