commit | 407640de2152e33341ce1131dac269672c3d50f7 | [log] [tgz] |
---|---|---|
author | Eric Dumazet <edumazet@google.com> | Tue Mar 17 18:32:26 2015 -0700 |
committer | David S. Miller <davem@davemloft.net> | Tue Mar 17 22:01:55 2015 -0400 |
tree | dec463be332bf8e0360d495d355e90cd9b80bd26 | |
parent | 9f2dbdd9b11d40f5fe0749eb91cd1cfc86fde575 [diff] |
inet: add sk_listener argument to inet_reqsk_alloc() listener socket can be used to set net pointer, and will be later used to hold a reference on listener. Add a const qualifier to first argument (struct request_sock_ops *), and factorize all write_pnet(&ireq->ireq_net, sock_net(sk)); Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>