| version 1.63, 1998/04/29 21:37:55 |
version 1.64, 1998/05/01 03:23:24 |
|
|
| m_adj(m, len - m->m_pkthdr.len); |
m_adj(m, len - m->m_pkthdr.len); |
| } |
} |
| |
|
| |
/* |
| |
* Assume that we can create a fast-forward IP flow entry |
| |
* based on this packet. |
| |
*/ |
| |
m->m_flags |= M_CANFASTFWD; |
| |
|
| #ifdef PFIL_HOOKS |
#ifdef PFIL_HOOKS |
| /* |
/* |
| * Run through list of hooks for input packets. |
* Run through list of hooks for input packets. If there are any |
| |
* filters which require that additional packets in the flow are |
| |
* not fast-forwarded, they must clear the M_CANFASTFWD flag. |
| |
* Note that filters must _never_ set this flag, as another filter |
| |
* in the list may have previously cleared it. |
| */ |
*/ |
| m0 = m; |
m0 = m; |
| for (pfh = pfil_hook_get(PFIL_IN); pfh; pfh = pfh->pfil_link.tqe_next) |
for (pfh = pfil_hook_get(PFIL_IN); pfh; pfh = pfh->pfil_link.tqe_next) |
| Line 1197 ip_forward(m, srcrt) |
|
| Line 1207 ip_forward(m, srcrt) |
|
| else { |
else { |
| if (mcopy) { |
if (mcopy) { |
| #ifdef GATEWAY |
#ifdef GATEWAY |
| ipflow_create(&ipforward_rt, mcopy); |
if (mcopy->m_flags & M_CANFASTFWD) |
| |
ipflow_create(&ipforward_rt, mcopy); |
| #endif |
#endif |
| m_freem(mcopy); |
m_freem(mcopy); |
| } |
} |