ipv4: ipcm_cookie initializers
authorWillem de Bruijn <willemb@google.com>
Fri, 6 Jul 2018 14:12:54 +0000 (10:12 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Jul 2018 01:58:49 +0000 (10:58 +0900)
commit351782067b6be81879b0af0daf7bd3acbb32d986
tree636d78515302aeb0e8513fe7763d8e1ba0872d6c
parentab8565af68001ac5f9331daa311938ead3eb5636
ipv4: ipcm_cookie initializers

Initialize the cookie in one location to reduce code duplication and
avoid bugs from inconsistent initialization, such as that fixed in
commit 9887cba19978 ("ip: limit use of gso_size to udp").

Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip.h
net/ipv4/icmp.c
net/ipv4/ip_output.c
net/ipv4/ping.c
net/ipv4/raw.c
net/ipv4/udp.c