diff options
author | Atis Elsts <atis@mikrotik.com> | 2009-10-07 13:55:57 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-07 13:55:57 -0700 |
commit | ffce908246c93b17304c313886d25cfa8aecd1d7 (patch) | |
tree | 8ffc95c5efa6602db4574357396454910a7efe36 /net/ipv4/syncookies.c | |
parent | 996ccf49005662ee7fee38a45be5cb27bf370b1d (diff) | |
download | kernel_samsung_aries-ffce908246c93b17304c313886d25cfa8aecd1d7.zip kernel_samsung_aries-ffce908246c93b17304c313886d25cfa8aecd1d7.tar.gz kernel_samsung_aries-ffce908246c93b17304c313886d25cfa8aecd1d7.tar.bz2 |
net: Add sk_mark route lookup support for IPv4 listening sockets
Add support for route lookup using sk_mark on IPv4 listening sockets.
Signed-off-by: Atis Elsts <atis@mikrotik.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/syncookies.c')
-rw-r--r-- | net/ipv4/syncookies.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/syncookies.c b/net/ipv4/syncookies.c index a6e0e07..5ec678a 100644 --- a/net/ipv4/syncookies.c +++ b/net/ipv4/syncookies.c @@ -333,7 +333,8 @@ struct sock *cookie_v4_check(struct sock *sk, struct sk_buff *skb, * no easy way to do this. */ { - struct flowi fl = { .nl_u = { .ip4_u = + struct flowi fl = { .mark = sk->sk_mark, + .nl_u = { .ip4_u = { .daddr = ((opt && opt->srr) ? opt->faddr : ireq->rmt_addr), |