diff options
author | Mart Frauenlob <mart.frauenlob@chello.at> | 2014-02-02 19:39:01 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-02-02 21:07:43 +0100 |
commit | 2e5babbfaddb267523c8450acf51c06f00f492c7 (patch) | |
tree | 9c379ef71754c1200e7be7f52bc3179ebb4b4bf0 /libxtables/xtoptions.c | |
parent | 410d7660248df0d8b89aaec51881d1f23548b03a (diff) |
libxtables: Print meaningful error message for an invalid MAC address string
If an invalid MAC address is used on the commmand line, the error message
`ether' was not really describing the problem.
Signed-off-by: Mart Frauenlob <mart.frauenlob@chello.at>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'libxtables/xtoptions.c')
-rw-r--r-- | libxtables/xtoptions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libxtables/xtoptions.c b/libxtables/xtoptions.c index 78e9abd6..9b4c5aa5 100644 --- a/libxtables/xtoptions.c +++ b/libxtables/xtoptions.c @@ -802,7 +802,7 @@ static void xtopt_parse_ethermac(struct xt_option_call *cb) sizeof(cb->val.ethermac)); return; out: - xt_params->exit_err(PARAMETER_PROBLEM, "ether"); + xt_params->exit_err(PARAMETER_PROBLEM, "Invalid MAC address specified."); } static void (*const xtopt_subparse[])(struct xt_option_call *) = { |