diff options
author | laforge <laforge> | 2003-10-07 22:12:31 +0000 |
---|---|---|
committer | laforge <laforge> | 2003-10-07 22:12:31 +0000 |
commit | 495394a01f7b8917ea2c4d8740060a28a4247e5d (patch) | |
tree | 05388de592c632dc1e3e913c7bd2ad2a986e66ed /libiptc | |
parent | 6bf3b7e8586dfbed400810ec9aae160812c36c36 (diff) |
sorry, this one didn't make it in 1.2.9rc1 :(
Diffstat (limited to 'libiptc')
-rw-r--r-- | libiptc/libip6tc.c | 13 |
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(); |