summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2016-09-07 21:52:56 -0700
committerBen Hutchings <ben@decadent.org.uk>2017-02-23 03:53:59 +0000
commit7763e1f41acaa24298308f52d1535145090f4bdb (patch)
treee798a9b3996a38841d46a0abc736fd6b23618c24 /arch/arm
parent6cab552356fd3cd66aa3c972d3fc9ce3169b2930 (diff)
downloadlinux-stable-7763e1f41acaa24298308f52d1535145090f4bdb.tar.gz
linux-stable-7763e1f41acaa24298308f52d1535145090f4bdb.tar.bz2
linux-stable-7763e1f41acaa24298308f52d1535145090f4bdb.zip
ipv4: accept u8 in IP_TOS ancillary data
commit e895cdce683161081e3626c4f5a5c55cb72089f8 upstream. In commit f02db315b8d8 ("ipv4: IP_TOS and IP_TTL can be specified as ancillary data") Francesco added IP_TOS values specified as integer. However, kernel sends to userspace (at recvmsg() time) an IP_TOS value in a single byte, when IP_RECVTOS is set on the socket. It can be very useful to reflect all ancillary options as given by the kernel in a subsequent sendmsg(), instead of aborting the sendmsg() with EINVAL after Francesco patch. So this patch extends IP_TOS ancillary to accept an u8, so that an UDP server can simply reuse same ancillary block without having to mangle it. Jesper can then augment https://github.com/netoptimizer/network-testing/blob/master/src/udp_example02.c to add TOS reflection ;) Fixes: f02db315b8d8 ("ipv4: IP_TOS and IP_TTL can be specified as ancillary data") Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Francesco Fusco <ffusco@redhat.com> Cc: Jesper Dangaard Brouer <brouer@redhat.com> Acked-by: Jesper Dangaard Brouer <brouer@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'arch/arm')
0 files changed, 0 insertions, 0 deletions