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
Unknown Object (File)
Thu, Jan 8, 3:22 AM
Unknown Object (File)
Fri, Dec 19, 2:07 AM
Unknown Object (File)
Dec 12 2025, 6:26 AM
Unknown Object (File)
Nov 6 2025, 11:35 PM
Unknown Object (File)
Nov 6 2025, 9:14 AM
Unknown Object (File)
Nov 6 2025, 5:49 AM
Unknown Object (File)
Nov 6 2025, 3:59 AM
Unknown Object (File)
Nov 4 2025, 2:51 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 60403
Build 57287: arc lint + arc unit