From 495394a01f7b8917ea2c4d8740060a28a4247e5d Mon Sep 17 00:00:00 2001 From: laforge Date: Tue, 7 Oct 2003 22:12:31 +0000 Subject: sorry, this one didn't make it in 1.2.9rc1 :( --- libiptc/libip6tc.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'libiptc') 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(); -- cgit v1.2.3