- Timestamp:
- Oct 19, 2007 9:09:51 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/NetworkAdapterImpl.cpp
r5120 r5378 342 342 ((c < 'A') || (c > 'F'))) 343 343 rc = setError(E_INVALIDARG, tr("Invalid MAC address format")); 344 /* the second digit must be evenfor unicast addresses */345 if ((i == 1) && ( c & 1))344 /* the second digit must have even value for unicast addresses */ 345 if ((i == 1) && (!!(c & 1) == (c >= '0' && c <= '9'))) 346 346 rc = setError(E_INVALIDARG, tr("Invalid MAC address format")); 347 347
Note:
See TracChangeset
for help on using the changeset viewer.