summaryrefslogtreecommitdiff
path: root/regress/usr.bin/jot
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2023-12-01 15:30:48 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2023-12-01 15:30:48 +0000
commit79bfbb1f7b40023e6734a64726ea32264ed253b2 (patch)
treebd759f478b3f45ecf7231951fc2b1a319f07cdb7 /regress/usr.bin/jot
parentb1fcc3145ae8770e9fdfc598b1aa70fd247f4b36 (diff)
Set inp address, port and rtable together with inpcb hash.
The inpcb hash table is protected by table->inpt_mtx. The hash is based on addresses, ports, and routing table. These fields were not sychronized with the hash. Put writes and hash update into the same critical section. Move the updates from ip_ctloutput(), ip6_ctloutput(), syn_cache_get(), tcp_connect(), udp_disconnect() to dedicated inpcb set functions. There they use the same table mutex as in_pcbrehash(). in_pcbbind(), in_pcbconnect(), and in6_pcbconnect() need more work and are not included yet. OK sashan@ mvs@
Diffstat (limited to 'regress/usr.bin/jot')
0 files changed, 0 insertions, 0 deletions