diff options
author | Octavian Purdila <octavian.purdila@intel.com> | 2014-06-25 10:09:50 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-27 18:53:35 -0400 |
commit | 57b47553f65e12e2e4f1608168374b0e651de843 (patch) | |
tree | 45557a36b10b6a43d5f3f610d35094e65adc9869 /net/ipv4/syncookies.c | |
parent | c1c27fb9b3040a2559d4d3e1183afa8c106bc94a (diff) |
tcp: cookie_v4_init_sequence: skb should be const
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/syncookies.c')
-rw-r--r-- | net/ipv4/syncookies.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/syncookies.c b/net/ipv4/syncookies.c index c86624b36a62..c0c75688896e 100644 --- a/net/ipv4/syncookies.c +++ b/net/ipv4/syncookies.c | |||
@@ -170,7 +170,8 @@ u32 __cookie_v4_init_sequence(const struct iphdr *iph, const struct tcphdr *th, | |||
170 | } | 170 | } |
171 | EXPORT_SYMBOL_GPL(__cookie_v4_init_sequence); | 171 | EXPORT_SYMBOL_GPL(__cookie_v4_init_sequence); |
172 | 172 | ||
173 | __u32 cookie_v4_init_sequence(struct sock *sk, struct sk_buff *skb, __u16 *mssp) | 173 | __u32 cookie_v4_init_sequence(struct sock *sk, const struct sk_buff *skb, |
174 | __u16 *mssp) | ||
174 | { | 175 | { |
175 | const struct iphdr *iph = ip_hdr(skb); | 176 | const struct iphdr *iph = ip_hdr(skb); |
176 | const struct tcphdr *th = tcp_hdr(skb); | 177 | const struct tcphdr *th = tcp_hdr(skb); |