diff options
Diffstat (limited to 'userspace/ebtables2/extensions/ebt_nat.c')
-rw-r--r-- | userspace/ebtables2/extensions/ebt_nat.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/userspace/ebtables2/extensions/ebt_nat.c b/userspace/ebtables2/extensions/ebt_nat.c index f25c806..c627714 100644 --- a/userspace/ebtables2/extensions/ebt_nat.c +++ b/userspace/ebtables2/extensions/ebt_nat.c @@ -121,14 +121,14 @@ static int parse_d(int c, char **argv, int argc, static void final_check_s(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_nat_info *natinfo = (struct ebt_nat_info *)target->data; if (BASE_CHAIN && natinfo->target == EBT_RETURN) print_error("--snat-target RETURN not allowed on base chain"); CLEAR_BASE_CHAIN_BIT; - if ((hook_mask & ~(1 << NF_BR_POST_ROUTING)) || strcmp(name, "nat")) + if ((hookmask & ~(1 << NF_BR_POST_ROUTING)) || strcmp(name, "nat")) print_error("Wrong chain for snat"); if (time == 0 && to_source_supplied == 0) print_error("No snat address supplied"); @@ -136,16 +136,16 @@ static void final_check_s(const struct ebt_u_entry *entry, static void final_check_d(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_nat_info *natinfo = (struct ebt_nat_info *)target->data; if (BASE_CHAIN && natinfo->target == EBT_RETURN) print_error("--dnat-target RETURN not allowed on base chain"); CLEAR_BASE_CHAIN_BIT; - if (((hook_mask & ~((1 << NF_BR_PRE_ROUTING) | (1 << NF_BR_LOCAL_OUT))) || - strcmp(name, "nat")) && - ((hook_mask & ~(1 << NF_BR_BROUTING)) || strcmp(name, "broute"))) + if (((hookmask & ~((1 << NF_BR_PRE_ROUTING) | (1 << NF_BR_LOCAL_OUT))) + || strcmp(name, "nat")) && + ((hookmask & ~(1 << NF_BR_BROUTING)) || strcmp(name, "broute"))) print_error("Wrong chain for dnat"); if (time == 0 && to_dest_supplied == 0) print_error("No dnat address supplied"); |