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-17 18:40:24 -08:00
2012-01-17 09:54:08 -05:00
2012-02-03 01:21:25 +01:00
2012-01-13 09:32:20 +10:30
2012-02-03 19:03:44 +01:00
2012-01-22 15:08:43 -05:00
2012-01-14 12:32:16 -08:00
2012-02-04 07:17:47 -08:00
2012-01-16 14:01:23 +01:00
2012-01-24 14:06:04 -05:00
2012-01-14 12:26:41 -08:00
2012-02-01 15:56:19 -08:00
2012-01-17 04:35:20 -05:00
2012-01-18 15:51:48 -08:00
2012-01-17 16:17:03 -05:00
2012-02-06 15:15:20 -08:00
2012-01-13 08:15:33 +01:00
2012-01-15 12:24:45 -08:00
2012-01-14 18:36:33 -08:00
2012-01-13 09:32:20 +10:30
2012-01-18 15:51:48 -08:00
2012-01-12 20:13:11 -08:00
2012-01-13 10:29:21 -08:00
2012-01-24 10:47:41 -08:00
2012-01-18 10:46:21 +11:00
2012-01-12 20:13:04 -08:00
2012-01-29 20:35:52 +01:00
2012-01-23 17:17:45 -08:00
2012-02-01 09:13:11 -08:00
2012-01-12 20:13:08 -08:00
2012-02-02 14:35:12 -05:00
2012-01-24 15:51:00 -05:00
2012-02-08 15:52:45 -05:00
2012-02-08 15:52:45 -05:00
2012-01-13 09:32:18 +10:30
2012-02-13 00:46:41 -05:00
2012-01-12 20:13:03 -08:00
2012-01-23 08:38:48 -08:00
2012-01-19 16:17:35 +11:00
2012-01-12 20:13:11 -08:00
2012-01-17 15:40:51 -08:00
2012-01-12 20:13:03 -08:00
2012-02-02 15:43:40 -08:00
2012-01-12 20:13:07 -08:00
2012-01-23 08:38:47 -08:00
2012-01-23 08:38:47 -08:00
2012-01-13 10:12:23 -08:00
2012-01-12 20:13:10 -08:00
2012-01-12 20:13:03 -08:00
2012-01-12 20:13:10 -08:00
2012-01-20 17:38:58 +00:00
2012-01-13 09:32:14 +10:30
2012-01-13 09:32:28 +10:30
2012-02-02 00:23:14 +11:00
2012-01-30 15:22:06 -05:00
2012-01-24 14:21:15 -05:00
2012-01-30 15:48:25 -05:00
2012-01-12 20:13:06 -08:00
2012-01-12 20:13:07 -08:00
2012-01-12 20:13:10 -08:00
2012-01-27 12:06:39 +01:00
2012-01-12 15:23:04 -08:00
2012-02-07 12:54:56 -05:00
2012-02-04 22:23:17 +01:00
2012-01-12 20:13:13 -08:00
2012-02-01 16:53:46 +08:00
2012-01-17 16:41:31 -08:00
2012-01-12 20:13:12 -08:00
2012-01-22 15:08:46 -05:00
2012-01-12 20:13:06 -08:00
2012-02-02 12:55:17 -08:00
2012-01-14 18:36:33 -08:00
2012-01-14 13:05:21 -08:00
2012-02-01 22:23:53 +05:30
2012-01-23 08:38:48 -08:00
2012-02-10 15:57:47 -08:00
2012-01-26 13:51:00 -05:00
2012-01-19 23:25:33 +01:00
2012-01-23 08:38:48 -08:00
2012-02-01 02:11:47 -05:00
2012-01-23 03:15:25 -05:00
2012-01-17 10:30:38 -08:00
2012-01-24 12:25:14 -08:00
2012-01-15 12:49:56 -08:00