diff options
Diffstat (limited to 'sys/netatm/atm_if.c')
-rw-r--r-- | sys/netatm/atm_if.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netatm/atm_if.c b/sys/netatm/atm_if.c index 0260ee0..86d783a 100644 --- a/sys/netatm/atm_if.c +++ b/sys/netatm/atm_if.c @@ -564,7 +564,7 @@ atm_physif_ioctl(code, data, arg) * Set macaddr in <Link> address */ ifp->if_addrlen = 6; - ifa = ifnet_addrs[ifp->if_index - 1]; + ifa = ifaddr_byindex(ifp->if_index); if ( ifa ) { sdl = (struct sockaddr_dl *) ifa->ifa_addr; |