Home
last modified time | relevance | path

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

/net/ipv6/
Dcalipso.c1273 const struct ipv6hdr *ip6_hdr = ipv6_hdr(skb); in calipso_skbuff_optptr() local
1276 if (ip6_hdr->nexthdr != NEXTHDR_HOP) in calipso_skbuff_optptr()
1279 offset = ipv6_find_tlv(skb, sizeof(*ip6_hdr), IPV6_TLV_CALIPSO); in calipso_skbuff_optptr()
1281 return (unsigned char *)ip6_hdr + offset; in calipso_skbuff_optptr()
1302 struct ipv6hdr *ip6_hdr; in calipso_skbuff_setattr() local
1308 ip6_hdr = ipv6_hdr(skb); in calipso_skbuff_setattr()
1309 if (ip6_hdr->nexthdr == NEXTHDR_HOP) { in calipso_skbuff_setattr()
1310 hop = (struct ipv6_opt_hdr *)(ip6_hdr + 1); in calipso_skbuff_setattr()
1332 ip6_hdr = ipv6_hdr(skb); /* Reset as skb_cow() may have moved it */ in calipso_skbuff_setattr()
1339 memmove((char *)ip6_hdr - len_delta, ip6_hdr, in calipso_skbuff_setattr()
[all …]
/net/batman-adv/
Dmain.c383 struct ipv6hdr ip6_hdr_tmp, *ip6_hdr; in batadv_skb_set_priority() local
413 ip6_hdr = skb_header_pointer(skb, offset + sizeof(*ethhdr), in batadv_skb_set_priority()
414 sizeof(*ip6_hdr), &ip6_hdr_tmp); in batadv_skb_set_priority()
415 if (!ip6_hdr) in batadv_skb_set_priority()
417 prio = (ipv6_get_dsfield(ip6_hdr) & 0xfc) >> 5; in batadv_skb_set_priority()