]> err.no Git - linux-2.6/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)
commitf0e48dbfc5c74e967fea4c0fd0c5ad07557ae0c8
tree3e082e8946855e6a21f1f65582eb308b1cec0ed1
parentb91b9fd11210a7023f37eaee1e977ad9ce532095
[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