Lines Matching defs:offset
204 int offset;
213 offset = ipv6_find_tlv(skb, opt->dsthao, IPV6_TLV_HAO);
214 if (likely(offset >= 0))
216 (skb_network_header(skb) + offset);
253 u16 offset = sizeof(struct ipv6hdr);
263 while (offset + 1 <= packet_len) {
277 if (ipv6_find_tlv(skb, offset, IPV6_TLV_HAO) >= 0) {
279 return offset;
283 return offset;
287 return offset;
290 offset += ipv6_optlen(exthdr);
292 exthdr = (struct ipv6_opt_hdr *)(nh + offset);
295 return offset;
389 u16 offset = sizeof(struct ipv6hdr);
399 while (offset + 1 <= packet_len) {
405 if (offset + 3 <= packet_len) {
407 rt = (struct ipv6_rt_hdr *)(nh + offset);
409 return offset;
414 if (ipv6_find_tlv(skb, offset, IPV6_TLV_HAO) >= 0)
415 return offset;
418 return offset;
422 return offset;
425 offset += ipv6_optlen(exthdr);
427 exthdr = (struct ipv6_opt_hdr *)(nh + offset);
430 return offset;