summaryrefslogtreecommitdiffstats
path: root/src/if-bsd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-04-23 14:15:41 +0000
committerRoy Marples <roy@marples.name>2020-04-23 14:15:41 +0000
commitb18431f9b8feff00fdd9d71532c38723eaf9aad8 (patch)
treebc46aa14bf60a57da0ed5b6f923cd98741377555 /src/if-bsd.c
parent3863f7bd6b991cc27ee29c764dab12b8902c61e4 (diff)
downloaddhcpcd-b18431f9b8feff00fdd9d71532c38723eaf9aad8.tar.xz
if: support changing hardware address type on Linux
Diffstat (limited to 'src/if-bsd.c')
-rw-r--r--src/if-bsd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/if-bsd.c b/src/if-bsd.c
index 47e3e57b..e5189112 100644
--- a/src/if-bsd.c
+++ b/src/if-bsd.c
@@ -1330,7 +1330,8 @@ if_ifa(struct dhcpcd_ctx *ctx, const struct ifa_msghdr *ifam)
break;
#endif
memcpy(&sdl, rti_info[RTAX_IFA], rti_info[RTAX_IFA]->sa_len);
- dhcpcd_handlehwaddr(ctx, ifp->name, CLLADDR(&sdl),sdl.sdl_alen);
+ dhcpcd_handlehwaddr(ifp, ifp->hwtype,
+ CLLADDR(&sdl), sdl.sdl_alen);
break;
}
#ifdef INET