aboutsummaryrefslogtreecommitdiff
path: root/net/ipv6/datagram.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2007-03-13 14:03:22 -0300
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-25 22:25:20 -0700
commitcc70ab261c9f997589546100ddec5da6bfd89c4e (patch)
tree0be6a4f0dc81131747f3d3726dba77d922c6bee9 /net/ipv6/datagram.c
parent2c0fd387b00a6758550b5ca1aae4408374483fe7 (diff)
downloadlinux-2.6.34-ux500-cc70ab261c9f997589546100ddec5da6bfd89c4e.tar.gz
[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>
Diffstat (limited to 'net/ipv6/datagram.c')
-rw-r--r--net/ipv6/datagram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/datagram.c b/net/ipv6/datagram.c
index f429290c2c3..feba6b197fe 100644
--- a/net/ipv6/datagram.c
+++ b/net/ipv6/datagram.c
@@ -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)