From 50fceae8f9b25bbe4effed74321e51916c1ce8b6 Mon Sep 17 00:00:00 2001 From: Harald Welte 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 9a78a5a9..f7947db7 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