inet: add sk_listener argument to inet_reqsk_alloc()
authorEric Dumazet <edumazet@google.com>
Wed, 18 Mar 2015 01:32:26 +0000 (18:32 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Mar 2015 02:01:55 +0000 (22:01 -0400)
commit407640de2152e33341ce1131dac269672c3d50f7
treedec463be332bf8e0360d495d355e90cd9b80bd26
parent9f2dbdd9b11d40f5fe0749eb91cd1cfc86fde575
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>
include/net/inet_sock.h
net/dccp/ipv4.c
net/dccp/ipv6.c
net/ipv4/syncookies.c
net/ipv4/tcp_input.c
net/ipv6/syncookies.c