summaryrefslogtreecommitdiff
path: root/sys/kern/kern_uuid.c
diff options
context:
space:
mode:
authorJeffrey Hsu <hsu@FreeBSD.org>2002-12-22 05:35:03 +0000
committerJeffrey Hsu <hsu@FreeBSD.org>2002-12-22 05:35:03 +0000
commitb30a244c34af22d80a4fcba8aa7b423947f8ef42 (patch)
treed0f9ee7e6f9d8014e6f8f94ab6965e85c268792e /sys/kern/kern_uuid.c
parent9991ea71785cc4e8661e8fee0aa7475726c7ad87 (diff)
Notes
Diffstat (limited to 'sys/kern/kern_uuid.c')
-rw-r--r--sys/kern/kern_uuid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_uuid.c b/sys/kern/kern_uuid.c
index 5d0cb744e9f3..d28cb36fcd37 100644
--- a/sys/kern/kern_uuid.c
+++ b/sys/kern/kern_uuid.c
@@ -91,7 +91,7 @@ uuid_node(uint16_t *node)
struct sockaddr_dl *sdl;
int i;
- /* XXX: lock ifnet. */
+ IFNET_RLOCK();
TAILQ_FOREACH(ifp, &ifnet, if_link) {
/* Walk the address list */
TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) {
@@ -100,12 +100,12 @@ uuid_node(uint16_t *node)
sdl->sdl_type == IFT_ETHER) {
/* Got a MAC address. */
bcopy(LLADDR(sdl), node, UUID_NODE_LEN);
- /* XXX: unlock ifnet. */
+ IFNET_RUNLOCK();
return;
}
}
}
- /* XXX: unlock ifnet. */
+ IFNET_RUNLOCK();
for (i = 0; i < (UUID_NODE_LEN>>1); i++)
node[i] = (uint16_t)arc4random();