From: Mart Frauenlob Date: Sun, 2 Feb 2014 18:39:01 +0000 (+0100) Subject: libxtables: Print meaningful error message for an invalid MAC address string X-Git-Tag: v1.6.0~112 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2e5babbfaddb267523c8450acf51c06f00f492c7;p=thirdparty%2Fiptables.git 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 Signed-off-by: Pablo Neira Ayuso --- 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 *) = {