The hw_addr_len and hw_addr are properly setup on all
the different systems. We no longer need to have
individual daemons know anything about this underlying
mechanism to get the data from the kernel.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
if (ifp == NULL) {
return -1;
}
-#ifdef HAVE_STRUCT_SOCKADDR_DL
- u_char len = ifp->sdl.sdl_alen;
- char *tmp = ifp->sdl.sdl_data + ifp->sdl.sdl_nlen;
-#else
+
u_char len = (u_char) ifp->hw_addr_len;
char *tmp = (void*) ifp->hw_addr;
-#endif
+
if (len == 8) {
memcpy(eui, tmp, 8);
eui[0] ^= 2;