diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2009-02-21 03:29:44 +0100 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2009-02-21 03:29:44 +0100 |
commit | 1829ed482efbc8b390cc760d012b3a4450494e1a (patch) | |
tree | cfdd4aa54cee9dc7e8eda8f755f3cf2ab8e1e880 /extensions/libxt_TCPOPTSTRIP.c | |
parent | bddcb92d1f0f76d21c4469b1667c8199c9fab126 (diff) |
libxtables: prefix exit_error to xtables_error
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'extensions/libxt_TCPOPTSTRIP.c')
-rw-r--r-- | extensions/libxt_TCPOPTSTRIP.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/extensions/libxt_TCPOPTSTRIP.c b/extensions/libxt_TCPOPTSTRIP.c index c053a8b1..cf946fc7 100644 --- a/extensions/libxt_TCPOPTSTRIP.c +++ b/extensions/libxt_TCPOPTSTRIP.c @@ -84,15 +84,15 @@ static void parse_list(struct xt_tcpoptstrip_target_info *info, char *arg) if (option == 0 && !xtables_strtoui(arg, NULL, &option, 0, UINT8_MAX)) - exit_error(PARAMETER_PROBLEM, + xtables_error(PARAMETER_PROBLEM, "Bad TCP option value \"%s\"", arg); if (option < 2) - exit_error(PARAMETER_PROBLEM, + xtables_error(PARAMETER_PROBLEM, "Option value may not be 0 or 1"); if (tcpoptstrip_test_bit(info->strip_bmap, option)) - exit_error(PARAMETER_PROBLEM, + xtables_error(PARAMETER_PROBLEM, "Option \"%s\" already specified", arg); tcpoptstrip_set_bit(info->strip_bmap, option); @@ -111,7 +111,7 @@ static int tcpoptstrip_tg_parse(int c, char **argv, int invert, switch (c) { case 's': if (*flags & FLAG_STRIP) - exit_error(PARAMETER_PROBLEM, + xtables_error(PARAMETER_PROBLEM, "You can specify --strip-options only once"); parse_list(info, optarg); *flags |= FLAG_STRIP; @@ -124,7 +124,7 @@ static int tcpoptstrip_tg_parse(int c, char **argv, int invert, static void tcpoptstrip_tg_check(unsigned int flags) { if (flags == 0) - exit_error(PARAMETER_PROBLEM, + xtables_error(PARAMETER_PROBLEM, "TCPOPTSTRIP: --strip-options parameter required"); } |