Page MenuHomeFreeBSD

inpcb: use family specific sockaddr argument for bind functions
ClosedPublic

Authored by glebius on Feb 15 2023, 2:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 27, 2:24 AM
Unknown Object (File)
Oct 4 2024, 1:29 PM
Unknown Object (File)
Oct 1 2024, 5:04 AM
Unknown Object (File)
Sep 29 2024, 11:14 AM
Unknown Object (File)
Sep 29 2024, 9:22 AM
Unknown Object (File)
Sep 24 2024, 6:10 AM
Unknown Object (File)
Sep 23 2024, 5:21 PM
Unknown Object (File)
Sep 23 2024, 1:12 AM

Details

Summary

Do the cast from sockaddr to either IPv4 or IPv6 sockaddr in the
protocol's pr_bind method and from there on go down the call
stack with family specific argument.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 49793
Build 46684: arc lint + arc unit

Event Timeline

zlei added a subscriber: zlei.

Looks good to me.

Finally, we're getting rid of nam. Nice!

markj added inline comments.
sys/netinet/in_pcb.c
904

BTW, we are not consistent about using struct in_addr vs. struct in_addr * vs. in_addr_t in inpcb interfaces. It would be nice to simplify that too.

This revision was not accepted when it landed; it landed in state Needs Review.Feb 15 2023, 6:31 PM
This revision was automatically updated to reflect the committed changes.