Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
udp_example02: socket option IP_RECVTOS for TOS reflection on sendmsg…
…() test Enable this test/socket-option with cmdline argument -t for "tos". Add option for testing kernel bug introduced in kernel commit: f02db315b8d8 ("ipv4: IP_TOS and IP_TTL can be specified as ancillary data") https://git.kernel.org/torvalds/c/f02db315b8d8 When enabling IP_RECVTOS: setsockopt(fd, SOL_IP, IP_RECVTOS, &on, sizeof(on)) Then reflecting/reusing the received ancillary data in the sendmsg() call will fail after kernel commit f02db315b8d8 ("ipv4: IP_TOS and IP_TTL can be specified as ancillary data"). Eric Dumazet fixed this in kernel commit: e895cdce6831 ("ipv4: accept u8 in IP_TOS ancillary data") https://git.kernel.org/davem/net-next/c/e895cdce6831 Eric suggested I added this test option, to allow testing the kernel fix. Suggested-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
- Loading branch information