diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2008-12-09 15:06:20 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-12-09 15:06:20 +0100 |
commit | cea9f71f5618250a38acb21c31fbbf93a752f7d4 (patch) | |
tree | 1f77c925110063cbc34172bd997efc2ac6cedff3 /extensions/libip6t_hl.c | |
parent | b8e74adfa512c220839dea399fc11197dd9b43ff (diff) |
iptables-save: output ! in position according to manpage
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'extensions/libip6t_hl.c')
-rw-r--r-- | extensions/libip6t_hl.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/extensions/libip6t_hl.c b/extensions/libip6t_hl.c index f683dc73..77275812 100644 --- a/extensions/libip6t_hl.c +++ b/extensions/libip6t_hl.c @@ -104,16 +104,16 @@ static void hl_print(const void *ip, const struct xt_entry_match *match, static void hl_save(const void *ip, const struct xt_entry_match *match) { - static const char *op[] = { - [IP6T_HL_EQ] = "eq", - [IP6T_HL_NE] = "eq !", - [IP6T_HL_LT] = "lt", - [IP6T_HL_GT] = "gt" }; + static const char *const op[] = { + [IP6T_HL_EQ] = "--hl-eq", + [IP6T_HL_NE] = "! --hl-eq", + [IP6T_HL_LT] = "--hl-lt", + [IP6T_HL_GT] = "--hl-gt" }; const struct ip6t_hl_info *info = (struct ip6t_hl_info *) match->data; - printf("--hl-%s %u ", op[info->mode], info->hop_limit); + printf("%s %u ", op[info->mode], info->hop_limit); } static const struct option hl_opts[] = { |