[ICMP6]: Introduce icmp6_hdr()
For consistency with all the other skb->h.raw accessors. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
2c0fd387b0
commit
cc70ab261c
@@ -209,7 +209,7 @@ void ipv6_icmp_error(struct sock *sk, struct sk_buff *skb, int err,
|
||||
__be16 port, u32 info, u8 *payload)
|
||||
{
|
||||
struct ipv6_pinfo *np = inet6_sk(sk);
|
||||
struct icmp6hdr *icmph = (struct icmp6hdr *)skb->h.raw;
|
||||
struct icmp6hdr *icmph = icmp6_hdr(skb);
|
||||
struct sock_exterr_skb *serr;
|
||||
|
||||
if (!np->recverr)
|
||||
|
Reference in New Issue
Block a user