Browse Source

assured correct supernode MAC address properties (#888)

pull/891/head
Logan oos Even 3 years ago
committed by GitHub
parent
commit
81bd79a82a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      src/supernode.c

8
src/supernode.c

@ -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…
Cancel
Save