summaryrefslogtreecommitdiffstats
path: root/libiptc
diff options
context:
space:
mode:
authorlaforge <laforge>2003-10-07 22:12:31 +0000
committerlaforge <laforge>2003-10-07 22:12:31 +0000
commit495394a01f7b8917ea2c4d8740060a28a4247e5d (patch)
tree05388de592c632dc1e3e913c7bd2ad2a986e66ed /libiptc
parent6bf3b7e8586dfbed400810ec9aae160812c36c36 (diff)
sorry, this one didn't make it in 1.2.9rc1 :(
Diffstat (limited to 'libiptc')
-rw-r--r--libiptc/libip6tc.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libiptc/libip6tc.c b/libiptc/libip6tc.c
index 9a78a5a..f7947db 100644
--- a/libiptc/libip6tc.c
+++ b/libiptc/libip6tc.c
@@ -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();