tproxy: copy transparent flag when creating a time wait
authorKOVACS Krisztian <hidden@balabit.hu>
Tue, 18 Oct 2011 10:17:35 +0000 (10:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Oct 2011 07:21:35 +0000 (03:21 -0400)
commit58af19e387d8821927e49be3f467da5e6a0aa8fd
tree24b731d70f90924221ad673d3e682fb2bb7f968c
parent8bae8bd6cb24eecad9fda3e125d36ab9c67d3fd7
tproxy: copy transparent flag when creating a time wait

The transparent socket option setting was not copied to the time wait
socket when an inet socket was being replaced by a time wait socket. This
broke the --transparent option of the socket match and may have caused
that FIN packets belonging to sockets in FIN_WAIT2 or TIME_WAIT state
were being dropped by the packet filter.

Signed-off-by: KOVACS Krisztian <hidden@balabit.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_minisocks.c