Commit a951e1a1 authored by Benoit Rat's avatar Benoit Rat Committed by Alessandro Rubini

flash-wrs: Check against multicast MAC address

parent 8b430614
......@@ -48,7 +48,7 @@ checkExit()
checkMAC()
{
X="[0-9a-fA-F][0-9a-fA-F]"
if echo $1 | grep "^${X}:${X}:${X}:${X}:${X}:${X}\$" > /dev/null; then
if echo $1 | grep "^[0-9a-fA-F][02468aceACE]:${X}:${X}:${X}:${X}:${X}\$" > /dev/null; then
return 0
fi
return 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment