Commit 1e11bf4b authored by Benoit Rat's avatar Benoit Rat Committed by Alessandro Rubini

wrsw_rtud: Correct how MAC is checked in exports.c

parent 2b7fadba
......@@ -123,8 +123,8 @@ int rtudexp_add_entry(const struct minipc_pd *pd,
halexp_query_ports(&ports);
if(mac_from_str(mac_tmp,strEHA))
TRACE(TRACE_ERROR,"%s is an invalid MAC format (XX:XX:XX:XX:XX)",strEHA);
if(mac_from_str(mac_tmp,strEHA)!=ETH_ALEN)
TRACE(TRACE_ERROR,"%s is an invalid MAC format (XX:XX:XX:XX:XX:XX)",strEHA);
TRACE(TRACE_INFO,"Create entry for (MAC=%s) port %x, mode:%s",mac_to_string(mac_tmp),1 << port,(mode)?"DYNAMIC":"STATIC");
......
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