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:
Brooks Davis 2005-06-12 00:45:24 +00:00
parent aed219316b
commit be4889bb80

View File

@ -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;
}