summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2011-06-04 16:26:02 +0000
committerrwatson <rwatson@FreeBSD.org>2011-06-04 16:26:02 +0000
commitf2e70f34fff765930c45c50d9cb2c5a6c47c24df (patch)
tree8151fa33fe565b39db6e4d8f2bdb6a691e071bff /Makefile.inc1
parente0aee1995d02c2353f24ef92396e85be66063fc5 (diff)
downloadFreeBSD-src-f2e70f34fff765930c45c50d9cb2c5a6c47c24df.zip
FreeBSD-src-f2e70f34fff765930c45c50d9cb2c5a6c47c24df.tar.gz
IP divert sockets use their inpcbinfo for port reservation, although not
for lookup. I missed its call to in_pcbbind() when preparing previous patches, which would lead to a lock assertion failure (although problem not an actual race condition due to global pcbinfo locks providing required synchronisation -- in this particular case only). This change adds the missing locking of the pcbhash lock. (Existing comments in the ipdivert code question the need for using the global hash to manage the namespace, as really it's a simple port namespace and not an address/port namespace. Also, although in_pcbbind is used to manage reservations, the hash tables aren't used for lookup. It might be a good idea to make them use hashed lookup, or to use a different reservation scheme.) Reviewed by: bz Reported by: Kristof Provost <kristof at sigsegv.be> Sponsored by: Juniper Networks
Diffstat (limited to 'Makefile.inc1')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud