diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2007-06-17 21:01:33 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2007-06-17 21:01:33 +0000 |
commit | 3b7b3d594436e9cec741b59b05ba351e49d68a25 (patch) | |
tree | 39c9e32d2419bd0b6e439929b22ad17593037354 | |
parent | 14c9c6f51a4a870b2b22d6292fee3963df645c2b (diff) |
add back missing bcopy & break, got lost when removing arcnet.
spotted by Mike Belopuhov <mkb@crypt.org.ru>
-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); } |