diff options
author | kmacy <kmacy@FreeBSD.org> | 2009-06-09 20:27:30 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2009-06-09 20:27:30 +0000 |
commit | 8fdb55dd4173ed49af8cc002203d5c23e353315e (patch) | |
tree | ae6b2ac37159ad619891e89e0d34519286491e2a /sys/net | |
parent | bdcfd6610cdc96714ba1e9282061845d9d760a29 (diff) | |
download | FreeBSD-src-8fdb55dd4173ed49af8cc002203d5c23e353315e.zip FreeBSD-src-8fdb55dd4173ed49af8cc002203d5c23e353315e.tar.gz |
make flowtable opt-out
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/flowtable.c | 3 | ||||
-rw-r--r-- | sys/net/flowtable.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/flowtable.c b/sys/net/flowtable.c index 0aef314..14c07ca 100644 --- a/sys/net/flowtable.c +++ b/sys/net/flowtable.c @@ -33,6 +33,7 @@ POSSIBILITY OF SUCH DAMAGE. #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#ifndef NO_FLOWTABLE #include <sys/param.h> #include <sys/types.h> #include <sys/bitstring.h> @@ -929,4 +930,4 @@ static struct kproc_desc flow_kp = { &flowcleanerproc }; SYSINIT(flowcleaner, SI_SUB_KTHREAD_IDLE, SI_ORDER_ANY, kproc_start, &flow_kp); - +#endif /* NO_FLOWTABLE */ diff --git a/sys/net/flowtable.h b/sys/net/flowtable.h index bc62a04..c949293 100644 --- a/sys/net/flowtable.h +++ b/sys/net/flowtable.h @@ -41,7 +41,7 @@ struct flowtable; extern struct flowtable *ip_ft; extern struct flowtable *ip_forward_ft; -#ifdef FLOWTABLE +#ifndef NO_FLOWTABLE struct flowtable *flowtable_alloc(int nentry, int flags); /* |