Lines Matching refs:offset
217 int offset; in mip6_destopt_reject() local
226 offset = ipv6_find_tlv(skb, opt->dsthao, IPV6_TLV_HAO); in mip6_destopt_reject()
227 if (likely(offset >= 0)) in mip6_destopt_reject()
229 (skb_network_header(skb) + offset); in mip6_destopt_reject()
266 u16 offset = sizeof(struct ipv6hdr); in mip6_destopt_offset() local
276 while (offset + 1 <= packet_len) { in mip6_destopt_offset()
290 if (ipv6_find_tlv(skb, offset, IPV6_TLV_HAO) >= 0) { in mip6_destopt_offset()
292 return offset; in mip6_destopt_offset()
296 return offset; in mip6_destopt_offset()
300 return offset; in mip6_destopt_offset()
303 offset += ipv6_optlen(exthdr); in mip6_destopt_offset()
305 exthdr = (struct ipv6_opt_hdr *)(nh + offset); in mip6_destopt_offset()
308 return offset; in mip6_destopt_offset()
402 u16 offset = sizeof(struct ipv6hdr); in mip6_rthdr_offset() local
412 while (offset + 1 <= packet_len) { in mip6_rthdr_offset()
418 if (offset + 3 <= packet_len) { in mip6_rthdr_offset()
420 rt = (struct ipv6_rt_hdr *)(nh + offset); in mip6_rthdr_offset()
422 return offset; in mip6_rthdr_offset()
427 if (ipv6_find_tlv(skb, offset, IPV6_TLV_HAO) >= 0) in mip6_rthdr_offset()
428 return offset; in mip6_rthdr_offset()
431 return offset; in mip6_rthdr_offset()
435 return offset; in mip6_rthdr_offset()
438 offset += ipv6_optlen(exthdr); in mip6_rthdr_offset()
440 exthdr = (struct ipv6_opt_hdr *)(nh + offset); in mip6_rthdr_offset()
443 return offset; in mip6_rthdr_offset()