Fix IPv6 neighbor discovery by using IF_LLADDR to get the mac address
instead of a particularly ugly cast + pointer math hack. Reported by: kuriyama, kris
This commit is contained in:
parent
aed219316b
commit
be4889bb80
@ -51,6 +51,7 @@
|
||||
#include <net/if.h>
|
||||
#include <net/if_types.h>
|
||||
#include <net/if_dl.h>
|
||||
#include <net/if_var.h>
|
||||
#include <net/route.h>
|
||||
|
||||
#include <netinet/in.h>
|
||||
@ -967,7 +968,7 @@ nd6_ifptomac(ifp)
|
||||
case IFT_CARP:
|
||||
#endif
|
||||
case IFT_ISO88025:
|
||||
return ((caddr_t)(ifp + 1));
|
||||
return IF_LLADDR(ifp);
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user