summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>1998-05-01 03:50:59 +0000
committerthorpej <thorpej@NetBSD.org>1998-05-01 03:50:59 +0000
commit2fdee596a3365d0aaae98953ef0d39422bb70d72 (patch)
tree96bc7272e0896870bac84fdfd7a55010d8c66b7d /sys/net
parent7e223b244a235b38575ad415c9b69ba2c1df8506 (diff)
Glue in IP flow fast forwarding.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_atmsubr.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/net/if_atmsubr.c b/sys/net/if_atmsubr.c
index 2ffa6b8dcbc..d486c01f4b7 100644
--- a/sys/net/if_atmsubr.c
+++ b/sys/net/if_atmsubr.c
@@ -1,4 +1,4 @@
-/* $NetBSD: if_atmsubr.c,v 1.14 1998/04/15 13:01:51 bouyer Exp $ */
+/* $NetBSD: if_atmsubr.c,v 1.15 1998/05/01 03:50:59 thorpej Exp $ */
/*
*
@@ -36,6 +36,8 @@
* if_atmsubr.c
*/
+#include "opt_gateway.h"
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
@@ -266,10 +268,14 @@ atm_input(ifp, ah, m, rxhand)
switch (etype) {
#ifdef INET
case ETHERTYPE_IP:
+#ifdef GATEWAY
+ if (ipflow_fastforward(m))
+ return;
+#endif
schednetisr(NETISR_IP);
inq = &ipintrq;
break;
-#endif
+#endif /* INET */
default:
m_freem(m);
return;