]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/sched/sch_sfq.c
[SK_BUFF]: Introduce ipv6_hdr(), remove skb->nh.ipv6h
[net-next-2.6.git] / net / sched / sch_sfq.c
index 02081bc9e0d14b85b1f1ba2627685730bfc70e50..e3695407afc6247380f12b72e92cad1a543f632b 100644 (file)
@@ -152,7 +152,7 @@ static unsigned sfq_hash(struct sfq_sched_data *q, struct sk_buff *skb)
        }
        case __constant_htons(ETH_P_IPV6):
        {
-               struct ipv6hdr *iph = skb->nh.ipv6h;
+               struct ipv6hdr *iph = ipv6_hdr(skb);
                h = iph->daddr.s6_addr32[3];
                h2 = iph->saddr.s6_addr32[3]^iph->nexthdr;
                if (iph->nexthdr == IPPROTO_TCP ||