-/* $OpenBSD: if.c,v 1.686 2023/04/05 19:35:23 bluhm Exp $ */
+/* $OpenBSD: if.c,v 1.687 2023/04/07 22:02:58 bluhm Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
atomic_clearbits_int(&netisr, n);
#if NETHER > 0
- if (n & (1 << NETISR_ARP)) {
- KERNEL_LOCK();
+ if (n & (1 << NETISR_ARP))
arpintr();
- KERNEL_UNLOCK();
- }
#endif
if (n & (1 << NETISR_IP))
ipintr();
-/* $OpenBSD: if_ether.c,v 1.260 2023/04/05 21:51:47 bluhm Exp $ */
+/* $OpenBSD: if_ether.c,v 1.261 2023/04/07 22:02:58 bluhm Exp $ */
/* $NetBSD: if_ether.c,v 1.31 1996/05/11 12:59:58 mycroft Exp $ */
/*
"address %s\n", addr, ether_sprintf(ea->arp_sha));
itaddr = isaddr;
} else if (rt != NULL) {
- int error;
-
- KERNEL_LOCK();
- error = arpcache(ifp, ea, rt);
- KERNEL_UNLOCK();
- if (error)
+ if (arpcache(ifp, ea, rt))
goto out;
}
time_t uptime;
int changed = 0;
- KERNEL_ASSERT_LOCKED();
+ NET_ASSERT_LOCKED_EXCLUSIVE();
KASSERT(sdl != NULL);
/*