]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipv6: tcp: fix TCLASS value in ACK messages sent from TIME_WAIT
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 27 Oct 2011 04:44:35 +0000 (00:44 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Oct 2011 04:44:35 +0000 (00:44 -0400)
commitb903d324bee2627036d024dceed73b3c96558795
tree976d7f5ff6d765faca2e1af86cbcddc9257470ab
parent138c4ae9cfda8fdcf9e137457853b09ef8cf8f77
ipv6: tcp: fix TCLASS value in ACK messages sent from TIME_WAIT

commit 66b13d99d96a (ipv4: tcp: fix TOS value in ACK messages sent from
TIME_WAIT) fixed IPv4 only.

This part is for the IPv6 side, adding a tclass param to ip6_xmit()

We alias tw_tclass and tw_tos, if socket family is INET6.

[ if sockets is ipv4-mapped, only IP_TOS socket option is used to fill
TOS field, TCLASS is not taken into account ]

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_timewait_sock.h
include/net/ipv6.h
net/dccp/ipv6.c
net/ipv4/tcp_minisocks.c
net/ipv6/inet6_connection_sock.c
net/ipv6/ip6_output.c
net/ipv6/tcp_ipv6.c
net/sctp/ipv6.c