]> git.baikalelectronics.ru Git - kernel.git/commit
ip: constify ip_build_and_send_pkt() socket argument
authorEric Dumazet <edumazet@google.com>
Fri, 25 Sep 2015 14:39:16 +0000 (07:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Sep 2015 20:00:38 +0000 (13:00 -0700)
commit907e4284c7b00d2469782630e2b59a1d92d35e96
treec521e7c60858ec4b86ab8199e1717e9a9df44b1e
parent7f96c84f23c565c00614a17da0feb5094c6c1eab
ip: constify ip_build_and_send_pkt() socket argument

This function is used to build and send SYNACK packets,
possibly on behalf of unlocked listener socket.

Make sure we did not miss a write by making this socket const.

We no longer can use ip_select_ident() and have to either
set iph->id to 0 or directly call __ip_select_ident()

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip.h
net/ipv4/ip_output.c