Searched hist:"1 b05c4b5" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/net/ipv6/ |
H A D | raw.c | 1b05c4b5 Tue Sep 25 02:03:40 CDT 2012 Eric Dumazet <edumazet@google.com> ipv6: raw: fix icmpv6_filter()
icmpv6_filter() should not modify its input, or else its caller would need to recompute ipv6_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.
Also, if icmpv6 header cannot be found, do not deliver the packet, as we do in IPv4.
Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> 1b05c4b5 Tue Sep 25 02:03:40 CDT 2012 Eric Dumazet <edumazet@google.com> ipv6: raw: fix icmpv6_filter() icmpv6_filter() should not modify its input, or else its caller would need to recompute ipv6_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. Also, if icmpv6 header cannot be found, do not deliver the packet, as we do in IPv4. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|