summaryrefslogtreecommitdiffstats
path: root/extensions/ebt_redirect.c
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2002-08-24 13:26:34 +0000
committerBart De Schuymer <bdschuym@pandora.be>2002-08-24 13:26:34 +0000
commitc9b5293ebf463f563976d1493f2c933f04a34e91 (patch)
treefc22d14c1e1169a1e71025e007581453ea46d657 /extensions/ebt_redirect.c
parentc34f467b183e2c1d42fa62fb449fe11985eaee62 (diff)
trivial change
Diffstat (limited to 'extensions/ebt_redirect.c')
-rw-r--r--extensions/ebt_redirect.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/extensions/ebt_redirect.c b/extensions/ebt_redirect.c
index 1975435..d74d46d 100644
--- a/extensions/ebt_redirect.c
+++ b/extensions/ebt_redirect.c
@@ -50,16 +50,17 @@ static int parse(int c, char **argv, int argc,
static void final_check(const struct ebt_u_entry *entry,
const struct ebt_entry_target *target, const char *name,
- unsigned int hook_mask, unsigned int time)
+ unsigned int hookmask, unsigned int time)
{
struct ebt_redirect_info *redirectinfo =
(struct ebt_redirect_info *)target->data;
if (BASE_CHAIN && redirectinfo->target == EBT_RETURN)
- print_error("--redirect-target RETURN not allowed on base chain");
+ print_error("--redirect-target RETURN not allowed on "
+ "base chain");
CLEAR_BASE_CHAIN_BIT;
- if ( ((hook_mask & ~(1 << NF_BR_PRE_ROUTING)) || strcmp(name, "nat")) &&
- ((hook_mask & ~(1 << NF_BR_BROUTING)) || strcmp(name, "broute")) )
+ if ( ((hookmask & ~(1 << NF_BR_PRE_ROUTING)) || strcmp(name, "nat")) &&
+ ((hookmask & ~(1 << NF_BR_BROUTING)) || strcmp(name, "broute")) )
print_error("Wrong chain for redirect");
}