Searched refs:ip6_hdr (Results 1 – 6 of 6) sorted by relevance
/linux-6.6.21/net/ipv6/ |
D | calipso.c | 1270 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 …]
|
/linux-6.6.21/tools/testing/selftests/net/ |
D | ip_defrag.c | 30 #define IP6_HLEN (sizeof(struct ip6_hdr)) 117 static uint16_t udp6_checksum(struct ip6_hdr *iphdr, struct udphdr *udphdr) in udp6_checksum() 150 udphdr.check = udp6_checksum((struct ip6_hdr *)ip_frame, &udphdr); in send_fragment() 157 struct ip6_hdr *ip6hdr = (struct ip6_hdr *)ip_frame; in send_fragment() 207 struct ip6_hdr *ip6hdr = (struct ip6_hdr *)ip_frame; in send_udp_frags()
|
D | toeplitz.c | 181 addrs = pkt + offsetof(struct ip6_hdr, ip6_src); in verify_rxhash() 318 __set_filter(fd, offsetof(struct ip6_hdr, ip6_nxt), proto, in set_filter() 319 sizeof(struct ip6_hdr) + off_dport); in set_filter()
|
D | udpgso.c | 43 #define CONST_HDRLEN_V6 (sizeof(struct ip6_hdr) + sizeof(struct udphdr)) 175 #define IP6_MAX_MTU (ETH_MAX_MTU + sizeof(struct ip6_hdr))
|
D | udpgso_bench_tx.c | 538 hdrlen = sizeof(struct ip6_hdr) + sizeof(struct udphdr); in parse_opts()
|
/linux-6.6.21/net/batman-adv/ |
D | main.c | 362 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()
|