diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2011-08-27 10:59:31 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2011-09-11 17:31:34 +0200 |
commit | 160f25b09fc5695a65a8aaf485ebece85e1f853c (patch) | |
tree | ff63080a509d8c92716b7ade18c3bfe75a8ac80a /libiptc/libip4tc.c | |
parent | 296dca39be1166c4b7c6367c1b97ee95aebddfc3 (diff) |
libiptc: remove unused HOOK_DROPPING thing
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'libiptc/libip4tc.c')
-rw-r--r-- | libiptc/libip4tc.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/libiptc/libip4tc.c b/libiptc/libip4tc.c index cf66709e..3b0c15af 100644 --- a/libiptc/libip4tc.c +++ b/libiptc/libip4tc.c @@ -36,9 +36,6 @@ typedef unsigned int socklen_t; #define HOOK_FORWARD NF_IP_FORWARD #define HOOK_LOCAL_OUT NF_IP_LOCAL_OUT #define HOOK_POST_ROUTING NF_IP_POST_ROUTING -#ifdef NF_IP_DROPPING -#define HOOK_DROPPING NF_IP_DROPPING -#endif #define STRUCT_ENTRY_TARGET struct ipt_entry_target #define STRUCT_ENTRY struct ipt_entry @@ -426,15 +423,6 @@ do_check(struct iptc_handle *h, unsigned int line) assert(h->info.hook_entry[NF_IP_LOCAL_OUT] == n); user_offset = h->info.hook_entry[NF_IP_LOCAL_OUT]; - -#ifdef NF_IP_DROPPING - } else if (strcmp(h->info.name, "drop") == 0) { - assert(h->info.valid_hooks == (1 << NF_IP_DROPPING)); - - /* Hook should be first */ - assert(h->info.hook_entry[NF_IP_DROPPING] == 0); - user_offset = 0; -#endif } else { fprintf(stderr, "Unknown table `%s'\n", h->info.name); abort(); |