Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=57effc70a5be9f7804e9a99964eb7265367effca
Commit:     57effc70a5be9f7804e9a99964eb7265367effca
Parent:     a16aeb36239ce612699ed64a75a03c88cbc657e8
Author:     Arnaldo Carvalho de Melo <[EMAIL PROTECTED]>
AuthorDate: Sat Mar 10 16:21:45 2007 -0300
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Wed Apr 25 22:24:45 2007 -0700

    [IPV6]: Use skb->nh.ipv6h instead of casting skb->nh.raw
    
    nh.ipv6h is there exactly for this reason! Use it while it exists ;-)
    
    Signed-off-by: Arnaldo Carvalho de Melo <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/ipv6/exthdrs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c
index bcc4820..fce5abd 100644
--- a/net/ipv6/exthdrs.c
+++ b/net/ipv6/exthdrs.c
@@ -200,7 +200,7 @@ static int ipv6_dest_hao(struct sk_buff **skbp, int optoff)
        struct sk_buff *skb = *skbp;
        struct ipv6_destopt_hao *hao;
        struct inet6_skb_parm *opt = IP6CB(skb);
-       struct ipv6hdr *ipv6h = (struct ipv6hdr *)skb->nh.raw;
+       struct ipv6hdr *ipv6h = skb->nh.ipv6h;
        struct in6_addr tmp_addr;
        int ret;
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to