aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ip.h
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-06-04 21:32:46 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2007-06-07 13:38:51 -0700
commitf0e48dbfc5c74e967fea4c0fd0c5ad07557ae0c8 (patch)
tree3e082e8946855e6a21f1f65582eb308b1cec0ed1 /include/net/ip.h
parentb91b9fd11210a7023f37eaee1e977ad9ce532095 (diff)
downloadkernel_goldelico_gta04-f0e48dbfc5c74e967fea4c0fd0c5ad07557ae0c8.zip
kernel_goldelico_gta04-f0e48dbfc5c74e967fea4c0fd0c5ad07557ae0c8.tar.gz
kernel_goldelico_gta04-f0e48dbfc5c74e967fea4c0fd0c5ad07557ae0c8.tar.bz2
[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>
Diffstat (limited to 'include/net/ip.h')
-rw-r--r--include/net/ip.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/ip.h b/include/net/ip.h
index bb207db..abf2820 100644
--- a/include/net/ip.h
+++ b/include/net/ip.h
@@ -143,6 +143,7 @@ struct ip_reply_arg {
__wsum csum;
int csumoffset; /* u16 offset of csum in iov[0].iov_base */
/* -1 if not needed */
+ int bound_dev_if;
};
void ip_send_reply(struct sock *sk, struct sk_buff *skb, struct ip_reply_arg *arg,