Home
last modified time | relevance | path

Searched refs:ip6_hdr (Results 1 – 2 of 2) sorted by relevance

/net/ipv6/
Dcalipso.c1270 const struct ipv6hdr *ip6_hdr = ipv6_hdr(skb); in calipso_skbuff_optptr() local
1273 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() local
1305 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 …]
/net/batman-adv/
Dmain.c362 struct ipv6hdr ip6_hdr_tmp, *ip6_hdr; in batadv_skb_set_priority() local
392 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()