summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_fw.h
diff options
context:
space:
mode:
authorrik <rik@FreeBSD.org>2008-09-06 16:47:07 +0000
committerrik <rik@FreeBSD.org>2008-09-06 16:47:07 +0000
commit8075e22678639c560edbc9838a84a9ec65eb813d (patch)
tree4fc63df8c359cc4ac902bc75a03ed9101eb73330 /sys/netinet/ip_fw.h
parent078503b2138ae4c2469808dc1c296ef0a2cf3e86 (diff)
downloadFreeBSD-src-8075e22678639c560edbc9838a84a9ec65eb813d.zip
FreeBSD-src-8075e22678639c560edbc9838a84a9ec65eb813d.tar.gz
Export the IPFW_DEFAULT_RULE outside ip_fw2.c. This number in not only
the default rule number but also the maximum rule number. User space software such as ipfw and natd should be aware of its value. The software that already includes ip_fw.h should use the defined value. All other a expected to use sysctl (as discussed on net@). MFC after: 5 days. Discussed on: net@
Diffstat (limited to 'sys/netinet/ip_fw.h')
-rw-r--r--sys/netinet/ip_fw.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/netinet/ip_fw.h b/sys/netinet/ip_fw.h
index 5dcdbb3..852056d 100644
--- a/sys/netinet/ip_fw.h
+++ b/sys/netinet/ip_fw.h
@@ -29,6 +29,11 @@
#define _IPFW2_H
/*
+ * The default rule number. It is also the max possible rule number.
+ */
+#define IPFW_DEFAULT_RULE 65535
+
+/*
* 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
OpenPOWER on IntegriCloud