]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libiptc: remove unused HOOK_DROPPING thing
authorJan Engelhardt <jengelh@medozas.de>
Sat, 27 Aug 2011 08:59:31 +0000 (10:59 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Sun, 11 Sep 2011 15:31:34 +0000 (17:31 +0200)
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
libiptc/libip4tc.c
libiptc/libiptc.c

index cf66709e42641dc77542342d63830b996823082f..3b0c15aff367fdffdd8cb200fd247bd033bf2d67 100644 (file)
@@ -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();
index 2214077eba7d589d0f6957bd272a54f34bb6421d..0a29a690e5a413136cdeb38fd246fc3e5e317518 100644 (file)
@@ -61,9 +61,6 @@ static const char *hooknames[] = {
        [HOOK_FORWARD]          = "FORWARD",
        [HOOK_LOCAL_OUT]        = "OUTPUT",
        [HOOK_POST_ROUTING]     = "POSTROUTING",
-#ifdef HOOK_DROPPING
-       [HOOK_DROPPING]         = "DROPPING"
-#endif
 };
 
 /* Convenience structures */