summaryrefslogtreecommitdiffstats
path: root/libxtables
diff options
context:
space:
mode:
authorMart Frauenlob <mart.frauenlob@chello.at>2014-02-02 19:39:01 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2014-02-02 21:07:43 +0100
commit2e5babbfaddb267523c8450acf51c06f00f492c7 (patch)
tree9c379ef71754c1200e7be7f52bc3179ebb4b4bf0 /libxtables
parent410d7660248df0d8b89aaec51881d1f23548b03a (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')
-rw-r--r--libxtables/xtoptions.c2
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 *) = {