Page MenuHomeFreeBSD

inpcb: remove always true condition in in_pcblookup_local()
ClosedPublic

Authored by glebius on Apr 18 2026, 1:21 AM.
Tags
None
Referenced Files
F168710669: D56488.id175810.diff
Sat, Aug 29, 6:31 PM
Unknown Object (File)
Fri, Aug 28, 8:15 PM
Unknown Object (File)
Fri, Aug 28, 3:59 AM
Unknown Object (File)
Wed, Aug 26, 2:54 PM
Unknown Object (File)
Mon, Aug 24, 6:01 AM
Unknown Object (File)
Sun, Aug 23, 6:01 PM
Unknown Object (File)
Sun, Aug 23, 11:25 AM
Unknown Object (File)
Fri, Aug 21, 8:00 PM
Subscribers

Details

Summary

We are searching through the hash that has only wildcard bindings.
This was missed by fdb987bebddf05e15a5af840379c7715a94aec1c.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Apr 18 2026, 12:15 PM

BTW, I regret calling this table "wild". "unconnected" would be much clearer. I wonder if you want to change this as part of your work in this area?

I actually like "wild". The "unconnected" is already used for inpcbs that are not put into any hash, e.g. right after socket(2).