]> git.baikalelectronics.ru Git - kernel.git/commit
[TCP]: Honour sk_bound_dev_if in tcp_v4_send_ack
authorPatrick McHardy <kaber@trash.net>
Tue, 5 Jun 2007 04:32:46 +0000 (21:32 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 7 Jun 2007 20:38:51 +0000 (13:38 -0700)
commit4a31b2e6bcad74a9153130326038a527a412e473
tree3e082e8946855e6a21f1f65582eb308b1cec0ed1
parent2a687e354eda7d12b3deaf47b54327b9d9fa9ed8
[TCP]: Honour sk_bound_dev_if in tcp_v4_send_ack

A time_wait socket inherits sk_bound_dev_if from the original socket,
but it is not used when sending ACK packets using ip_send_reply.

Fix by passing the oif to ip_send_reply in struct ip_reply_arg and
use it for output routing.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip.h
net/ipv4/ip_output.c
net/ipv4/tcp_ipv4.c