Lines Matching refs:h

109 	int off = skb->h.raw - skb->nh.raw;  in ip6_parse_tlv()
110 int len = ((skb->h.raw[1]+1)<<3); in ip6_parse_tlv()
112 if ((skb->h.raw + len) - skb->data > skb_headlen(skb)) in ip6_parse_tlv()
172 if (!pskb_may_pull(skb, (skb->h.raw-skb->data)+8) || in ipv6_dest_opt()
173 !pskb_may_pull(skb, (skb->h.raw-skb->data)+((skb->h.raw[1]+1)<<3))) { in ipv6_dest_opt()
178 opt->dst1 = skb->h.raw - skb->nh.raw; in ipv6_dest_opt()
181 skb->h.raw += ((skb->h.raw[1]+1)<<3); in ipv6_dest_opt()
214 if (!pskb_may_pull(skb, (skb->h.raw-skb->data)+8) || in ipv6_routing_header()
215 !pskb_may_pull(skb, (skb->h.raw-skb->data)+((skb->h.raw[1]+1)<<3))) { in ipv6_routing_header()
221 hdr = (struct ipv6_rt_hdr *) skb->h.raw; in ipv6_routing_header()
231 opt->srcrt = skb->h.raw - skb->nh.raw; in ipv6_routing_header()
232 skb->h.raw += (hdr->hdrlen + 1) << 3; in ipv6_routing_header()
270 hdr = (struct ipv6_rt_hdr *) skb2->h.raw; in ipv6_routing_header()
410 if (!pskb_may_pull(skb, (skb->h.raw-skb->data)+8)) in ipv6_auth_hdr()
419 len = (skb->h.raw[1]+2)<<2; in ipv6_auth_hdr()
424 if (!pskb_may_pull(skb, (skb->h.raw-skb->data)+len)) in ipv6_auth_hdr()
427 opt->auth = skb->h.raw - skb->nh.raw; in ipv6_auth_hdr()
428 skb->h.raw += len; in ipv6_auth_hdr()
579 struct ipv6_opt_hdr *h = (struct ipv6_opt_hdr *)skb_put(skb, ipv6_optlen(opt)); in ipv6_build_exthdr() local
581 memcpy(h, opt, ipv6_optlen(opt)); in ipv6_build_exthdr()
582 h->nexthdr = *prev_hdr; in ipv6_build_exthdr()
584 return &h->nexthdr; in ipv6_build_exthdr()
589 struct ipv6_opt_hdr *h = (struct ipv6_opt_hdr *)skb_put(skb, (opt->hdrlen+2)<<2); in ipv6_build_authhdr() local
591 memcpy(h, opt, (opt->hdrlen+2)<<2); in ipv6_build_authhdr()
592 h->nexthdr = *prev_hdr; in ipv6_build_authhdr()
594 return &h->nexthdr; in ipv6_build_authhdr()
601 struct ipv6_opt_hdr *h = (struct ipv6_opt_hdr *)skb->data; in ipv6_build_nfrag_opts() local
612 h->hdrlen++; in ipv6_build_nfrag_opts()
614 h = (struct ipv6_opt_hdr *)jumboopt; in ipv6_build_nfrag_opts()
615 h->nexthdr = *prev_hdr; in ipv6_build_nfrag_opts()
616 h->hdrlen = 0; in ipv6_build_nfrag_opts()
619 prev_hdr = &h->nexthdr; in ipv6_build_nfrag_opts()
670 struct ipv6_opt_hdr *h = (struct ipv6_opt_hdr *)skb_push(skb, ipv6_optlen(opt)); in ipv6_push_exthdr() local
672 memcpy(h, opt, ipv6_optlen(opt)); in ipv6_push_exthdr()
673 h->nexthdr = *proto; in ipv6_push_exthdr()
679 struct ipv6_opt_hdr *h = (struct ipv6_opt_hdr *)skb_push(skb, (opt->hdrlen+2)<<2); in ipv6_push_authhdr() local
681 memcpy(h, opt, (opt->hdrlen+2)<<2); in ipv6_push_authhdr()
682 h->nexthdr = *proto; in ipv6_push_authhdr()