mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
[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>
This commit is contained in:
parent
b91b9fd112
commit
f0e48dbfc5
3 changed files with 6 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue