Home
last modified time | relevance | path

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

/linux/net/ipv6/
H A Dcalipso.c1267 const struct ipv6hdr *ip6_hdr = ipv6_hdr(skb); in calipso_skbuff_optptr() local
1270 if (ip6_hdr->nexthdr != NEXTHDR_HOP) in calipso_skbuff_optptr()
1273 offset = ipv6_find_tlv(skb, sizeof(*ip6_hdr), IPV6_TLV_CALIPSO); in calipso_skbuff_optptr()
1275 return (unsigned char *)ip6_hdr + offset; in calipso_skbuff_optptr()
1296 struct ipv6hdr *ip6_hdr; in calipso_skbuff_setattr() local
1302 ip6_hdr = ipv6_hdr(skb); in calipso_skbuff_setattr()
1303 if (ip6_hdr->nexthdr == NEXTHDR_HOP) { in calipso_skbuff_setattr()
1304 hop = (struct ipv6_opt_hdr *)(ip6_hdr + 1); in calipso_skbuff_setattr()
1326 ip6_hdr = ipv6_hdr(skb); /* Reset as skb_cow() may have moved it */ in calipso_skbuff_setattr()
1333 memmove((char *)ip6_hdr - len_delta, ip6_hdr, in calipso_skbuff_setattr()
[all …]
/linux/tools/testing/selftests/net/
H A Dip_defrag.c30 #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()
H A Dtoeplitz.c181 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()
H A Dudpgso.c43 #define CONST_HDRLEN_V6 (sizeof(struct ip6_hdr) + sizeof(struct udphdr))
196 #define IP6_MAX_MTU (ETH_MAX_MTU + sizeof(struct ip6_hdr))
H A Dudpgso_bench_tx.c538 hdrlen = sizeof(struct ip6_hdr) + sizeof(struct udphdr); in parse_opts()