Replace Bcopy/Bzero with 'the real thing' as in the rest of the file.

This commit is contained in:
Luigi Rizzo 2004-04-18 11:45:28 +00:00
parent 4158372f1a
commit 056c7327e4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=128397
2 changed files with 8 additions and 8 deletions

View File

@ -1208,7 +1208,7 @@ nd6_rtrequest(req, rt, info)
}
nd6_inuse++;
nd6_allocated++;
Bzero(ln, sizeof(*ln));
bzero(ln, sizeof(*ln));
ln->ln_rt = rt;
/* this is required for "ndp" command. - shin */
if (req == RTM_ADD) {
@ -1245,7 +1245,7 @@ nd6_rtrequest(req, rt, info)
ln->ln_state = ND6_LLINFO_REACHABLE;
ln->ln_byhint = 0;
if (macp) {
Bcopy(macp, LLADDR(SDL(gate)), ifp->if_addrlen);
bcopy(macp, LLADDR(SDL(gate)), ifp->if_addrlen);
SDL(gate)->sdl_alen = ifp->if_addrlen;
}
if (nd6_useloopback) {

View File

@ -463,9 +463,9 @@ defrouter_addreq(new)
struct sockaddr_in6 def, mask, gate;
struct rtentry *newrt = NULL;
Bzero(&def, sizeof(def));
Bzero(&mask, sizeof(mask));
Bzero(&gate, sizeof(gate));
bzero(&def, sizeof(def));
bzero(&mask, sizeof(mask));
bzero(&gate, sizeof(gate));
def.sin6_len = mask.sin6_len = gate.sin6_len =
sizeof(struct sockaddr_in6);
@ -554,9 +554,9 @@ defrouter_delreq(dr, dofree)
struct sockaddr_in6 def, mask, gate;
struct rtentry *oldrt = NULL;
Bzero(&def, sizeof(def));
Bzero(&mask, sizeof(mask));
Bzero(&gate, sizeof(gate));
bzero(&def, sizeof(def));
bzero(&mask, sizeof(mask));
bzero(&gate, sizeof(gate));
def.sin6_len = mask.sin6_len = gate.sin6_len =
sizeof(struct sockaddr_in6);