Skip to content

Support ancillary data over sendmsg, recvmsg #313

Closed
@brunowonka

Description

@brunowonka

Should socket2 support sendmsg/recvmsg including control ancillary data to expose things like IP_TTL and IPV6_PKTINFO.

I took a quick stab at it to figure out how it'd look like. I only did the writing side, I think there's a lot of design work and discussion here and I'm more than half-convinced this should be an enum instead of what I wrote.

I think it'd be interesting to basically provide some safe wrappers around CMSG and the many control data types. Unclear if it's in the interest of the authors of the crate to maintain all of those, however. Also I have 0 experience with Windows here so I didn't even try satisfying it with my prototype, and I'm honestly not even sure where to begin there.

Interested to hear the maintainer's thoughts. I'm willing to iterate on design and implementation here if there is interest.

Note: This is somewhat related to #86 from what I gathered in the discussion over there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions