diff options
-rw-r--r-- | libiptc/libip4tc.c | 3 | ||||
-rw-r--r-- | libiptc/libiptc.c | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/libiptc/libip4tc.c b/libiptc/libip4tc.c index e1eb0ab..30cddb4 100644 --- a/libiptc/libip4tc.c +++ b/libiptc/libip4tc.c @@ -35,6 +35,9 @@ 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 diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c index 9db28c5..55edbc6 100644 --- a/libiptc/libiptc.c +++ b/libiptc/libiptc.c @@ -31,7 +31,10 @@ static const char *hooknames[] [HOOK_LOCAL_IN] "INPUT", [HOOK_FORWARD] "FORWARD", [HOOK_LOCAL_OUT] "OUTPUT", - [HOOK_POST_ROUTING] "POSTROUTING" + [HOOK_POST_ROUTING] "POSTROUTING", +#ifdef HOOK_DROPPING + [HOOK_DROPPING] "DROPPING" +#endif }; struct counter_map |