Searched refs:ip6_hdr (Results 1 – 2 of 2) sorted by relevance
1270 const struct ipv6hdr *ip6_hdr = ipv6_hdr(skb); in calipso_skbuff_optptr() local1273 if (ip6_hdr->nexthdr != NEXTHDR_HOP) in calipso_skbuff_optptr()1276 offset = ipv6_find_tlv(skb, sizeof(*ip6_hdr), IPV6_TLV_CALIPSO); in calipso_skbuff_optptr()1278 return (unsigned char *)ip6_hdr + offset; in calipso_skbuff_optptr()1299 struct ipv6hdr *ip6_hdr; in calipso_skbuff_setattr() local1305 ip6_hdr = ipv6_hdr(skb); in calipso_skbuff_setattr()1306 if (ip6_hdr->nexthdr == NEXTHDR_HOP) { in calipso_skbuff_setattr()1307 hop = (struct ipv6_opt_hdr *)(ip6_hdr + 1); in calipso_skbuff_setattr()1329 ip6_hdr = ipv6_hdr(skb); /* Reset as skb_cow() may have moved it */ in calipso_skbuff_setattr()1336 memmove((char *)ip6_hdr - len_delta, ip6_hdr, in calipso_skbuff_setattr()[all …]
362 struct ipv6hdr ip6_hdr_tmp, *ip6_hdr; in batadv_skb_set_priority() local392 ip6_hdr = skb_header_pointer(skb, offset + sizeof(*ethhdr), in batadv_skb_set_priority()393 sizeof(*ip6_hdr), &ip6_hdr_tmp); in batadv_skb_set_priority()394 if (!ip6_hdr) in batadv_skb_set_priority()396 prio = (ipv6_get_dsfield(ip6_hdr) & 0xfc) >> 5; in batadv_skb_set_priority()