diff options
author | rik <rik@FreeBSD.org> | 2008-09-21 20:42:42 +0000 |
---|---|---|
committer | rik <rik@FreeBSD.org> | 2008-09-21 20:42:42 +0000 |
commit | 54874638fbc42185871ea882284ba3f3e5a0cad8 (patch) | |
tree | 085833d957f41c74d71ac326dacbd70d8a85dca5 /sys/netinet | |
parent | acdad30e01fb738a92dc0b4e32ecae4ec055aca8 (diff) | |
download | FreeBSD-src-54874638fbc42185871ea882284ba3f3e5a0cad8.zip FreeBSD-src-54874638fbc42185871ea882284ba3f3e5a0cad8.tar.gz |
Export IPFW_TABLES_MAX value for compiled in defaults.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_fw.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/netinet/ip_fw.h b/sys/netinet/ip_fw.h index 7a9f9ea..666e536 100644 --- a/sys/netinet/ip_fw.h +++ b/sys/netinet/ip_fw.h @@ -37,6 +37,12 @@ #define IPFW_DEFAULT_RULE 65535 /* + * The number of ipfw tables. The maximum allowed table number is the + * (IPFW_TABLES_MAX - 1). + */ +#define IPFW_TABLES_MAX 128 + +/* * The kernel representation of ipfw rules is made of a list of * 'instructions' (for all practical purposes equivalent to BPF * instructions), which specify which fields of the packet @@ -640,7 +646,6 @@ extern ip_fw_chk_t *ip_fw_chk_ptr; #ifdef IPFW_INTERNAL -#define IPFW_TABLES_MAX 128 struct ip_fw_chain { struct ip_fw *rules; /* list of rules */ struct ip_fw *reap; /* list of rules to reap */ |