Use the mac address stored in the device_settings struct to generate the
eui64 ifaceid as the interface layer3 device does not contain a mac address
for non bridge interfaces
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
/* get mac address */
uint8_t *macaddr = iface->l3_dev.dev->settings.macaddr;
uint8_t *ifaceid = addr->s6_addr + 8;
- memcpy(ifaceid,macaddr,3);
- memcpy(ifaceid + 5,macaddr + 3, 3);
+ memcpy(ifaceid, st.macaddr, 3);
+ memcpy(ifaceid + 5, st.macaddr + 3, 3);
ifaceid[3] = 0xff;
ifaceid[4] = 0xfe;
ifaceid[0] ^= 0x02;