]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
sorry, this one didn't make it in 1.2.9rc1 :(
authorHarald Welte <laforge@gnumonks.org>
Tue, 7 Oct 2003 22:12:31 +0000 (22:12 +0000)
committerHarald Welte <laforge@gnumonks.org>
Tue, 7 Oct 2003 22:12:31 +0000 (22:12 +0000)
libiptc/libip6tc.c

index 9a78a5a916a6e9258079c5f9990c9cf008c7ac1c..f7947db776815ee0d133b1a4061cf660d40228bf 100644 (file)
@@ -382,6 +382,19 @@ do_check(TC_HANDLE_T h, unsigned int line)
                        assert(h->info.hook_entry[NF_IP6_POST_ROUTING] == n);
                        user_offset = h->info.hook_entry[NF_IP6_POST_ROUTING];
                }
+       } else if (strcmp(h->info.name, "raw") == 0) {
+               assert(h->info.valid_hooks
+                      == (1 << NF_IP6_PRE_ROUTING
+                          | 1 << NF_IP6_LOCAL_OUT));
+
+               /* Hooks should be first three */
+               assert(h->info.hook_entry[NF_IP6_PRE_ROUTING] == 0);
+
+               n = get_chain_end(h, n);
+               n += get_entry(h, n)->next_offset;
+               assert(h->info.hook_entry[NF_IP6_LOCAL_OUT] == n);
+
+               user_offset = h->info.hook_entry[NF_IP6_LOCAL_OUT];
        } else {
                 fprintf(stderr, "Unknown table `%s'\n", h->info.name);
                abort();