commit | ab43ed8b7490cb387782423ecf74aeee7237e591 | [log] [tgz] |
---|---|---|
author | Eric Dumazet <edumazet@google.com> | Sat Sep 22 00:08:29 2012 +0000 |
committer | David S. Miller <davem@davemloft.net> | Sat Sep 22 15:35:05 2012 -0400 |
tree | 5c2083ad85142b2385669ba9fc01061de24debc8 | |
parent | 9913b8c8f05b0aad97432900fa3b2cdfd557eeb5 [diff] |
ipv4: raw: fix icmp_filter() icmp_filter() should not modify its input, or else its caller would need to recompute ip_hdr() if skb->head is reallocated. Use skb_header_pointer() instead of pskb_may_pull() and change the prototype to make clear both sk and skb are const. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>