Page MenuHomeFreeBSD

inpcb: Make some cosmetic improvements to in_pcbbind()
ClosedPublic

Authored by markj on Nov 5 2024, 4:27 PM.
Tags
None
Referenced Files
F150649532: D47451.diff
Fri, Apr 3, 2:29 AM
Unknown Object (File)
Tue, Mar 24, 11:57 PM
Unknown Object (File)
Sat, Mar 21, 5:22 AM
Unknown Object (File)
Mon, Mar 16, 2:22 PM
Unknown Object (File)
Thu, Mar 12, 6:41 PM
Unknown Object (File)
Sun, Mar 8, 7:25 PM
Unknown Object (File)
Mar 4 2026, 7:05 AM
Unknown Object (File)
Feb 28 2026, 6:26 PM
Subscribers

Details

Summary
  • Use the local var "laddr" instead of sin->sin_addr in one block.
  • Use in_nullhost() instead of explicit comparisons with INADDR_ANY.
  • Combine multiple socket options checks into one.
  • Fix indentation.
  • Remove some unhelpful comments.

This is in preparation for some simplification and bug-fixing.

No functional change intended.

Sponsored by: Klara, Inc.
Sponsored by: Stormshield

Diff Detail

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