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)
Tue, Sep 24, 6:10 AM
Unknown Object (File)
Mon, Sep 23, 5:21 PM
Unknown Object (File)
Mon, Sep 23, 1:12 AM
Unknown Object (File)
Fri, Sep 20, 11:16 PM
Unknown Object (File)
Fri, Sep 20, 6:36 PM
Unknown Object (File)
Wed, Sep 18, 10:30 PM
Unknown Object (File)
Wed, Sep 18, 5:03 AM
Unknown Object (File)
Mon, Sep 16, 9:15 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 Not Applicable
Unit
Tests Not Applicable

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.