summaryrefslogtreecommitdiffstats
path: root/include/net/ip.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-09-25 07:39:16 -0700
committerDavid S. Miller <davem@davemloft.net>2015-09-25 13:00:38 -0700
commitcfe673b0ae4754ffc051482f4a948b67ddbeec10 (patch)
treec521e7c60858ec4b86ab8199e1717e9a9df44b1e /include/net/ip.h
parentb83e3deb974ca2c11e21256fe602e517afb83247 (diff)
downloadblackbird-op-linux-cfe673b0ae4754ffc051482f4a948b67ddbeec10.tar.gz
blackbird-op-linux-cfe673b0ae4754ffc051482f4a948b67ddbeec10.zip
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>
Diffstat (limited to 'include/net/ip.h')
-rw-r--r--include/net/ip.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/ip.h b/include/net/ip.h
index 525dc0778926..91a6b2c88341 100644
--- a/include/net/ip.h
+++ b/include/net/ip.h
@@ -100,7 +100,7 @@ int igmp_mc_init(void);
* Functions provided by ip.c
*/
-int ip_build_and_send_pkt(struct sk_buff *skb, struct sock *sk,
+int ip_build_and_send_pkt(struct sk_buff *skb, const struct sock *sk,
__be32 saddr, __be32 daddr,
struct ip_options_rcu *opt);
int ip_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt,
OpenPOWER on IntegriCloud