summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcp/common/dispatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/dhcp/common/dispatch.c')
-rw-r--r--usr.sbin/dhcp/common/dispatch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/dhcp/common/dispatch.c b/usr.sbin/dhcp/common/dispatch.c
index c830a5d6f34..d978223bc1b 100644
--- a/usr.sbin/dhcp/common/dispatch.c
+++ b/usr.sbin/dhcp/common/dispatch.c
@@ -139,6 +139,7 @@ void discover_interfaces (state)
if (ifa -> ifa_addr->sa_family == AF_LINK) {
struct sockaddr_dl *foo = ((struct sockaddr_dl *)
(ifa -> ifa_addr));
+ tmp -> index = foo->sdl_index;
tmp -> hw_address.hlen = foo -> sdl_alen;
tmp -> hw_address.htype = HTYPE_ETHER; /* XXX */
memcpy (tmp -> hw_address.haddr,