]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
update debugging code to mangle5hooks changes
authorHarald Welte <laforge@gnumonks.org>
Fri, 8 Feb 2002 10:02:38 +0000 (10:02 +0000)
committerHarald Welte <laforge@gnumonks.org>
Fri, 8 Feb 2002 10:02:38 +0000 (10:02 +0000)
libiptc/libip4tc.c
libiptc/libip6tc.c

index df7fee21cdae213125e9f0d8ac895a64563d6f33..0d9e439b2afb89e2575107d6751afd825b276b86 100644 (file)
@@ -384,7 +384,10 @@ do_check(TC_HANDLE_T h, unsigned int line)
        } else if (strcmp(h->info.name, "mangle") == 0) {
                assert(h->info.valid_hooks
                       == (1 << NF_IP_PRE_ROUTING
-                          | 1 << NF_IP_LOCAL_OUT));
+                          | 1 << NF_IP_POST_ROUTING
+                          | 1 << NF_IP_LOCAL_IN
+                          | 1 << NF_IP_LOCAL_OUT
+                          | 1 << NF_IP_FORWARD));
 
                /* Hooks should be first two */
                assert(h->info.hook_entry[NF_IP_PRE_ROUTING] == 0);
index b09d439c9c80a53efd6f34f575c918a46ac62c27..91cd01c786e506878713e5f74a13230e7ed2ac1d 100644 (file)
@@ -330,7 +330,10 @@ do_check(TC_HANDLE_T h, unsigned int line)
        } else if (strcmp(h->info.name, "mangle") == 0) {
                assert(h->info.valid_hooks
                       == (1 << NF_IP6_PRE_ROUTING
-                          | 1 << NF_IP6_LOCAL_OUT));
+                          | 1 << NF_IP6_POST_ROUTING
+                          | 1 << NF_IP6_LOCAL_IN
+                          | 1 << NF_IP6_LOCAL_OUT
+                          | 1 << NF_IP6_FORWARD));
 
                /* Hooks should be first three */
                assert(h->info.hook_entry[NF_IP6_PRE_ROUTING] == 0);