mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
TPROXY: supply a struct flowi->flags argument in inet_sk_rebuild_header()
inet_sk_rebuild_header() does a new route lookup if the dst_entry
associated with a socket becomes stale. However inet_sk_rebuild_header()
didn't use struct flowi->flags, causing the route lookup to
fail for foreign-bound IP_TRANSPARENT sockets, causing an error
state to be set for the sockets in question.
Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
a134f85c13
commit
c828384582
1 changed files with 1 additions and 0 deletions
|
|
@ -1117,6 +1117,7 @@ int inet_sk_rebuild_header(struct sock *sk)
|
|||
},
|
||||
},
|
||||
.proto = sk->sk_protocol,
|
||||
.flags = inet_sk_flowi_flags(sk),
|
||||
.uli_u = {
|
||||
.ports = {
|
||||
.sport = inet->sport,
|
||||
|
|
|
|||
Loading…
Reference in a new issue