nix icon indicating copy to clipboard operation
nix copied to clipboard

Add support for TTL and RECV_ERR control messages

Open pmalmgren opened this issue 4 years ago • 2 comments
trafficstars

This patch adds support for the following in Linux:

  • Reading the IP ttl header from a control message if IP_RECVTTL is set on the socket with setsockopt
  • Reading any errors from a control message if IP_RECVERR is set on the socket with setsockopt

pmalmgren avatar Apr 19 '21 18:04 pmalmgren

@asomers Correct, it adds support for two new types of cmsg. They are requested with setsockopt and require new socket options. I'll add a commit for those to this PR.

pmalmgren avatar Apr 23 '21 19:04 pmalmgren

N.B., #1161 also attempts to add IP_RECVERR support. I have not looked at either PR's changes yet, and the other PR doesn't attempt to cover IP_RECVTTL.

cemeyer avatar Sep 06 '21 13:09 cemeyer