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
F162753841: D47451.id.diff
Thu, Jul 16, 12:43 PM
F162734827: D47451.id146062.diff
Thu, Jul 16, 7:41 AM
Unknown Object (File)
Wed, Jul 15, 9:58 PM
Unknown Object (File)
Sun, Jul 12, 10:32 AM
Unknown Object (File)
Thu, Jul 2, 11:42 AM
Unknown Object (File)
Mon, Jun 29, 10:25 PM
Unknown Object (File)
Sun, Jun 28, 4:30 PM
Unknown Object (File)
Sun, Jun 28, 2:41 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