summaryrefslogtreecommitdiffstats
path: root/sys/net/if_fddisubr.c
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1998-05-19 14:04:36 +0000
committerdg <dg@FreeBSD.org>1998-05-19 14:04:36 +0000
commit5f8a4130d8dd1d4441beb5fba01ab53b331a9111 (patch)
treeaaed0538d112feb998dd062f62a7e8e220668f46 /sys/net/if_fddisubr.c
parentc3415a2524903047d0a79dad7753c33f98e0f235 (diff)
downloadFreeBSD-src-5f8a4130d8dd1d4441beb5fba01ab53b331a9111.zip
FreeBSD-src-5f8a4130d8dd1d4441beb5fba01ab53b331a9111.tar.gz
Added fast IP forwarding code by Matt Thomas <matt@3am-software.com> via
NetBSD, ported to FreeBSD by Pierre Beyssac <pb@fasterix.freenix.org> and minorly tweaked by me. This is a standard part of FreeBSD, but must be enabled with: "sysctl -w net.inet.ip.fastforwarding=1" ...and of course forwarding must also be enabled. This should probably be modified to use the zone allocator for speed and space efficiency. The current algorithm also appears to lose if the number of active paths exceeds IPFLOW_MAX (256), in which case it wastes lots of time trying to figure out which cache entry to drop.
Diffstat (limited to 'sys/net/if_fddisubr.c')
-rw-r--r--sys/net/if_fddisubr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if_fddisubr.c b/sys/net/if_fddisubr.c
index 5f54878..140ef0d 100644
--- a/sys/net/if_fddisubr.c
+++ b/sys/net/if_fddisubr.c
@@ -33,7 +33,7 @@
* SUCH DAMAGE.
*
* from: if_ethersubr.c,v 1.5 1994/12/13 22:31:45 wollman Exp
- * $Id: if_fddisubr.c,v 1.26 1998/02/20 13:11:49 bde Exp $
+ * $Id: if_fddisubr.c,v 1.27 1998/03/30 09:51:44 phk Exp $
*/
#include "opt_atalk.h"
@@ -533,6 +533,8 @@ fddi_input(ifp, fh, m)
switch (type) {
#ifdef INET
case ETHERTYPE_IP:
+ if (ipflow(fastforward(m))
+ return;
schednetisr(NETISR_IP);
inq = &ipintrq;
break;
OpenPOWER on IntegriCloud