Use shared net lock for ip_send() and ip6_send().
authorbluhm <bluhm@openbsd.org>
Wed, 6 Sep 2023 11:09:43 +0000 (11:09 +0000)
committerbluhm <bluhm@openbsd.org>
Wed, 6 Sep 2023 11:09:43 +0000 (11:09 +0000)
commitfe6e30d17e0a55eb5c1352822f1b6513b6adb59e
treece2cdab923e31842cddbd2198099f7e7681a90ab
parent522c104b802eccb8649f2d020ef5ceb70ed82639
Use shared net lock for ip_send() and ip6_send().

When called with NULL options, ip_output() and ip6_output() are MP
safe.  Convert exclusive to shared net lock in send dispatch.

OK mpi@
sys/netinet/ip_input.c
sys/netinet6/ip6_input.c