Skip to content

Instantly share code, notes, and snippets.

@invisiblek
Created December 28, 2014 03:35
Show Gist options
  • Save invisiblek/4509fdb0abaf02b38987 to your computer and use it in GitHub Desktop.
Save invisiblek/4509fdb0abaf02b38987 to your computer and use it in GitHub Desktop.
diff --git a/net/ipv4/syncookies.c b/net/ipv4/syncookies.c
index d507577..e721766 100644
--- a/net/ipv4/syncookies.c
+++ b/net/ipv4/syncookies.c
@@ -348,7 +348,7 @@ struct sock *cookie_v4_check(struct sock *sk, struct sk_buff *skb,
* hasn't changed since we received the original syn, but I see
* no easy way to do this.
*/
- flowi4_init_output(&fl4, sk->sk_bound_dev_if, sk->sk_mark,
+ flowi4_init_output(&fl4, sk->sk_bound_dev_if, ireq->ir_mark,
RT_CONN_FLAGS(sk), RT_SCOPE_UNIVERSE, IPPROTO_TCP,
inet_sk_flowi_flags(sk),
(opt && opt->srr) ? opt->faddr : ireq->rmt_addr,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment