diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-01-09 21:57:53 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-01-09 21:57:53 +0000 |
commit | 989deaf07a7e429edf4ad45c6356bc14f6e4ec95 (patch) | |
tree | cdbf7f4824ec47916eeee31e57b2981f7bda1510 /sys/netinet/if_ether.c | |
parent | fbf501a1477c4bc97ae0bb8f1ab6afc3f51138aa (diff) |
replace Bcopy macro with memmove and memcpy. ok mpi
Diffstat (limited to 'sys/netinet/if_ether.c')
-rw-r--r-- | sys/netinet/if_ether.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index b556c89e0fa..2b8fa15f28b 100644 --- a/sys/netinet/if_ether.c +++ b/sys/netinet/if_ether.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ether.c,v 1.115 2014/01/09 06:29:05 tedu Exp $ */ +/* $OpenBSD: if_ether.c,v 1.116 2014/01/09 21:57:52 tedu Exp $ */ /* $NetBSD: if_ether.c,v 1.31 1996/05/11 12:59:58 mycroft Exp $ */ /* @@ -253,9 +253,10 @@ arp_rtrequest(int req, struct rtentry *rt) * interface. */ rt->rt_expire = 0; - Bcopy(((struct arpcom *)rt->rt_ifp)->ac_enaddr, - LLADDR(SDL(gate)), - SDL(gate)->sdl_alen = ETHER_ADDR_LEN); + SDL(gate)->sdl_alen = ETHER_ADDR_LEN; + memcpy(LLADDR(SDL(gate)), + ((struct arpcom *)rt->rt_ifp)->ac_enaddr, + ETHER_ADDR_LEN); if (useloopback) rt->rt_ifp = lo0ifp; /* |