]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libxtables: Print meaningful error message for an invalid MAC address string
authorMart Frauenlob <mart.frauenlob@chello.at>
Sun, 2 Feb 2014 18:39:01 +0000 (19:39 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 2 Feb 2014 20:07:43 +0000 (21:07 +0100)
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>
libxtables/xtoptions.c

index 78e9abd6a3f470baa4e8cabe5bb87c14de559ff2..9b4c5aa51f87ddff2bc0117208166dbb67b5d6c0 100644 (file)
@@ -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 *) = {