diff options
-rw-r--r-- | sys/net/if.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 322437c670e..ffd9cb5e874 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.162 2007/06/14 18:31:49 reyk Exp $ */ +/* $OpenBSD: if.c,v 1.163 2007/06/17 21:01:32 henning Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -1357,7 +1357,9 @@ ifioctl(struct socket *so, u_long cmd, caddr_t data, struct proc *p) bcopy((caddr_t)ifr->ifr_addr.sa_data, (caddr_t)((struct arpcom *)ifp)->ac_enaddr, ETHER_ADDR_LEN); - /* FALLTHROUGH */ + bcopy((caddr_t)ifr->ifr_addr.sa_data, + LLADDR(sdl), ETHER_ADDR_LEN); + break; default: return (ENODEV); } |