mirror of
https://github.com/ntop/n2n.git
synced 2024-09-19 16:41:11 +02:00
assured correct supernode MAC address properties (#888)
This commit is contained in:
parent
e0a9bb95fc
commit
81bd79a82a
|
@ -290,7 +290,13 @@ static int setOption (int optkey, char *_optarg, n2n_sn_t *sss) {
|
|||
}
|
||||
#ifdef SN_MANUAL_MAC
|
||||
case 'm': {/* MAC address */
|
||||
str2mac(sss->mac_addr,_optarg);
|
||||
str2mac(sss->mac_addr, _optarg);
|
||||
|
||||
// clear multicast bit
|
||||
sss->mac_addr[0] &= ~0x01;
|
||||
// set locally-assigned bit
|
||||
sss->mac_addr[0] |= 0x02;
|
||||
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user