]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: raw: fix icmp_filter()
authorEric Dumazet <edumazet@google.com>
Sat, 22 Sep 2012 00:08:29 +0000 (00:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Sep 2012 19:35:05 +0000 (15:35 -0400)
commita62ee29677248b8d92ce9c68ea94d2e570334327
tree5c2083ad85142b2385669ba9fc01061de24debc8
parent49522f49b1e81d1a6100eac72dce789d1a132a6d
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>
net/ipv4/raw.c