Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for IP_RECVERR #1514

Merged
merged 1 commit into from
Sep 7, 2021
Merged

Commits on Sep 6, 2021

  1. Add support for IP_RECVERR and IPV6_RECVERR

    Setting these options enables receiving errors, such as ICMP errors from
    the network, via `recvmsg()` with `MSG_ERRQUEUE`.
    
    Adds new `Ipv{4,6}RecvErr` variants to `ControlMessageOwned`.  These
    control messages are produced when `Ipv4RecvErr` or `Ipv6RecvErr`
    options are enabled on a raw or datagram socket.
    
    New tests for the functionality can be run with `cargo test --test test
    test_recverr`.
    
    This commit builds on an earlier draft of the functionality authored by
    Matthew McPherrin <git@mcpherrin.ca>.
    cemeyer committed Sep 6, 2021
    Configuration menu
    Copy the full SHA
    d23e7c7 View commit details
    Browse the repository at this point in the history