--- ip_fw2.c.orig	2008-08-20 03:58:42.000000000 +0800
+++ ip_fw2.c	2008-09-03 09:53:29.000000000 +0800
@@ -254,7 +254,10 @@
 static u_int32_t static_len;	/* size in bytes of static rules */
 static u_int32_t dyn_count;		/* # of dynamic rules */
 static u_int32_t dyn_max = 4096;	/* max # of dynamic rules */
+static u_int32_t tables_max = IPFW_TABLES_MAX;	/* max # of tables */
 
+SYSCTL_INT(_net_inet_ip_fw, OID_AUTO, tables_max, CTLFLAG_RD,
+    &tables_max, 0, "Max number of tables");
 SYSCTL_INT(_net_inet_ip_fw, OID_AUTO, dyn_buckets, CTLFLAG_RW,
     &dyn_buckets, 0, "Number of dyn. buckets");
 SYSCTL_INT(_net_inet_ip_fw, OID_AUTO, curr_dyn_buckets, CTLFLAG_RD,
