summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_divert.c
diff options
context:
space:
mode:
authorKlemens Nanni <kn@cvs.openbsd.org>2023-06-27 17:36:57 +0000
committerKlemens Nanni <kn@cvs.openbsd.org>2023-06-27 17:36:57 +0000
commit739b83a4002b8ed737c0d6f25c6cfac4c094b312 (patch)
tree0c57744a35daac5a03d3d56d93fa910fa005a4d9 /sys/netinet/ip_divert.c
parent9f72df7a6a5d1bee2681782c86c8521567c9b33a (diff)
Use shared net lock for DIOCGETIFACES
snmpd(8) and 'pfctl -s Interfaces' dump pf's internal list of interfaces. pf's internal interface list is completely protected by the pf lock, pf lock assertions since pf_if.c r1.110 from over a week ago support this. pfi_*() iterate over net lock protected if_groups lists, but only to read, so downgrade from exclusive write net lock to a shared read-only one. Feedback mvs OK sashan
Diffstat (limited to 'sys/netinet/ip_divert.c')
0 files changed, 0 insertions, 0 deletions