kernel_optimize_test/net
Eric Dumazet 66b13d99d9 ipv4: tcp: fix TOS value in ACK messages sent from TIME_WAIT
There is a long standing bug in linux tcp stack, about ACK messages sent
on behalf of TIME_WAIT sockets.

In the IP header of the ACK message, we choose to reflect TOS field of
incoming message, and this might break some setups.

Example of things that were broken :
  - Routing using TOS as a selector
  - Firewalls
  - Trafic classification / shaping

We now remember in timewait structure the inet tos field and use it in
ACK generation, and route lookup.

Notes :
 - We still reflect incoming TOS in RST messages.
 - We could extend MuraliRaja Muniraju patch to report TOS value in
netlink messages for TIME_WAIT sockets.
 - A patch is needed for IPv6

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-10-24 03:06:21 -04:00
..
9p
802
8021q
appletalk net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
atm
ax25
batman-adv
bluetooth
bridge
caif
can can: remove references to berlios mailinglist 2011-10-17 19:22:46 -04:00
ceph
core tcp: add const qualifiers where possible 2011-10-21 05:22:42 -04:00
dcb
dccp
decnet
dns_resolver
dsa
econet
ethernet
ieee802154
ipv4 ipv4: tcp: fix TOS value in ACK messages sent from TIME_WAIT 2011-10-24 03:06:21 -04:00
ipv6 tcp: md5: add more const attributes 2011-10-24 02:46:04 -04:00
ipx
irda
iucv net: more accurate skb truesize 2011-10-13 16:05:07 -04:00
key
l2tp l2tp: give proper headroom in pppol2tp_xmit() 2011-10-18 23:33:44 -04:00
lapb
llc
mac80211 Merge branch 'master' of git://git.infradead.org/users/linville/wireless-next into for-davem 2011-10-17 15:05:26 -04:00
netfilter
netlabel
netlink
netrom
nfc
packet macvlan: handle fragmented multicast frames 2011-10-18 23:22:07 -04:00
phonet
rds
rfkill
rose
rxrpc
sched
sctp net: more accurate skb truesize 2011-10-13 16:05:07 -04:00
sunrpc
tipc
unix
wanrouter
wimax
wireless nl80211: Add sta_flags to the station info 2011-10-14 14:48:23 -04:00
x25
xfrm net: add skb frag size accessors 2011-10-19 03:10:46 -04:00
compat.c
Kconfig
Makefile
nonet.c
socket.c
sysctl_net.c