summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-04-19 10:12:21 +0000
committerphk <phk@FreeBSD.org>2005-04-19 10:12:21 +0000
commitbbad4f5164f3a5ff875e8b62d81835d4124b7236 (patch)
tree16b66165a61c727171441556535bb9ec13272c1a /sys
parent84c2edfcd6e786b97d3da7524c2315a47814cc22 (diff)
downloadFreeBSD-src-bbad4f5164f3a5ff875e8b62d81835d4124b7236.zip
FreeBSD-src-bbad4f5164f3a5ff875e8b62d81835d4124b7236.tar.gz
Make DUMMYNET compile without INET6
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_dummynet.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/netinet/ip_dummynet.c b/sys/netinet/ip_dummynet.c
index ccea5ea6..6a24c79 100644
--- a/sys/netinet/ip_dummynet.c
+++ b/sys/netinet/ip_dummynet.c
@@ -29,6 +29,12 @@
#define DUMMYNET_DEBUG
+#if !defined(KLD_MODULE)
+#include "opt_inet6.h"
+#endif
+
+#define IPFW2 1
+
/*
* This module implements IP dummynet, a bandwidth limiter/delay emulator
* used in conjunction with the ipfw package.
@@ -464,6 +470,7 @@ transmit_event(struct dn_pipe *pipe)
ip_input(m) ;
break ;
+#ifdef INET6
case DN_TO_IP6_IN:
ip6_input(m) ;
break ;
@@ -471,6 +478,7 @@ transmit_event(struct dn_pipe *pipe)
case DN_TO_IP6_OUT:
(void)ip6_output(m, NULL, NULL, pkt->flags, NULL, NULL, NULL);
break ;
+#endif
case DN_TO_BDG_FWD :
/*
OpenPOWER on IntegriCloud