nix
nix copied to clipboard
Add support for TTL and RECV_ERR control messages
trafficstars
This patch adds support for the following in Linux:
- Reading the IP
ttlheader from a control message ifIP_RECVTTLis set on the socket withsetsockopt - Reading any errors from a control message if
IP_RECVERRis set on the socket withsetsockopt
@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.
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.