summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_CLUSTERIP.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2003-11-26 12:50:38 +0000
committerHarald Welte <laforge@gnumonks.org>2003-11-26 12:50:38 +0000
commitdb986e8a33ddd84be9045494d8d94ffd775be0fb (patch)
treebeb0e3d512a37ba3a45044fe52f4371315e27128 /extensions/libipt_CLUSTERIP.c
parentf997120aaa36b28b6949813ed2cb2fa87fd65bd0 (diff)
add mac check
Diffstat (limited to 'extensions/libipt_CLUSTERIP.c')
-rw-r--r--extensions/libipt_CLUSTERIP.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/extensions/libipt_CLUSTERIP.c b/extensions/libipt_CLUSTERIP.c
index 6741fd70..55e86c5c 100644
--- a/extensions/libipt_CLUSTERIP.c
+++ b/extensions/libipt_CLUSTERIP.c
@@ -118,6 +118,8 @@ parse(int c, char **argv, int invert, unsigned int *flags,
if (*flags & PARAM_MAC)
exit_error(PARAMETER_PROBLEM, "Can only specify MAC once\n");
parse_mac(optarg, cipinfo->clustermac);
+ if (!(cipinfo->clustermac[0] & 0x01))
+ exit_error(PARAMETER_PROBLEM, "MAC has to be a multicast ethernet address\n");
*flags |= PARAM_MAC;
break;
case '4':