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)
Sat, Feb 22, 2:33 PM
Unknown Object (File)
Sat, Feb 22, 1:44 PM
Unknown Object (File)
Tue, Feb 18, 2:06 PM
Unknown Object (File)
Sat, Feb 8, 11:47 AM
Unknown Object (File)
Sat, Feb 8, 8:44 AM
Unknown Object (File)
Sat, Feb 8, 7:56 AM
Unknown Object (File)
Thu, Feb 6, 4:02 PM
Unknown Object (File)
Thu, Feb 6, 3:49 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