Files
kernel_arpi/include/linux
Jiri Benc 4c507d2897 net: implement IP_RECVTOS for IP_PKTOPTIONS
Currently, it is not easily possible to get TOS/DSCP value of packets from
an incoming TCP stream. The mechanism is there, IP_PKTOPTIONS getsockopt
with IP_RECVTOS set, the same way as incoming TTL can be queried. This is
not actually implemented for TOS, though.

This patch adds this functionality, both for IPv4 (IP_PKTOPTIONS) and IPv6
(IPV6_2292PKTOPTIONS). For IPv4, like in the IP_RECVTTL case, the value of
the TOS field is stored from the other party's ACK.

This is needed for proxies which require DSCP transparency. One such example
is at http://zph.bratcheda.org/.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-02-13 00:46:41 -05:00
..
2012-01-22 15:08:43 -05:00
2012-01-10 16:30:42 -08:00
2012-01-04 08:56:31 -06:00
2012-01-12 20:13:04 -08:00
2012-01-12 20:13:08 -08:00
2012-01-03 22:55:17 -05:00
2012-01-09 13:52:09 +01:00
2012-01-12 20:13:11 -08:00
2012-01-17 15:40:51 -08:00
2012-01-12 20:13:10 -08:00
2012-01-30 15:48:25 -05:00
2012-01-06 12:10:26 -08:00
2012-01-12 15:23:04 -08:00
2012-01-03 22:55:07 -05:00
2012-02-02 12:55:17 -08:00
2012-01-09 09:33:57 +09:00
2012-02-01 02:11:47 -05:00
2012-01-24 12:25:14 -08:00