]> 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)
commit0986a6f2182d9b3cecde5af6c831e78c25b5e3b1
treec521e7c60858ec4b86ab8199e1717e9a9df44b1e
parent50b0b7d310eb29b6148f54c10c62c4b84e673d23
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