diff options
author | andre <andre@FreeBSD.org> | 2003-11-14 21:02:22 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2003-11-14 21:02:22 +0000 |
commit | de48630dfbd4851b73c7b9665f35c4b6dda706f6 (patch) | |
tree | 3e1327d0236ae8452ddd76bd0e5f5426c1bcfd14 /sys/net/if_arcsubr.c | |
parent | 53640e68942991cce3c7f1ab31ac16ec0de5c1d5 (diff) | |
download | FreeBSD-src-de48630dfbd4851b73c7b9665f35c4b6dda706f6.zip FreeBSD-src-de48630dfbd4851b73c7b9665f35c4b6dda706f6.tar.gz |
Introduce ip_fastforward and remove ip_flow.
Short description of ip_fastforward:
o adds full direct process-to-completion IPv4 forwarding code
o handles ip fragmentation incl. hw support (ip_flow did not)
o sends icmp needfrag to source if DF is set (ip_flow did not)
o supports ipfw and ipfilter (ip_flow did not)
o supports divert, ipfw fwd and ipfilter nat (ip_flow did not)
o returns anything it can't handle back to normal ip_input
Enable with sysctl -w net.inet.ip.fastforwarding=1
Reviewed by: sam (mentor)
Diffstat (limited to 'sys/net/if_arcsubr.c')
-rw-r--r-- | sys/net/if_arcsubr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_arcsubr.c b/sys/net/if_arcsubr.c index 24c3a86..1912dc3 100644 --- a/sys/net/if_arcsubr.c +++ b/sys/net/if_arcsubr.c @@ -543,14 +543,14 @@ arc_input(ifp, m) #ifdef INET case ARCTYPE_IP: m_adj(m, ARC_HDRNEWLEN); - if (ipflow_fastforward(m)) + if (ip_fastforward(m)) return; isr = NETISR_IP; break; case ARCTYPE_IP_OLD: m_adj(m, ARC_HDRLEN); - if (ipflow_fastforward(m)) + if (ip_fastforward(m)) return; isr = NETISR_IP; break; |