Searched refs:ip6_hdr (Results 1 – 8 of 8) sorted by relevance
| /linux/net/ipv6/ |
| H A D | calipso.c | 1289 const struct ipv6hdr *ip6_hdr = ipv6_hdr(skb); in calipso_skbuff_optptr() local 1292 if (ip6_hdr->nexthdr != NEXTHDR_HOP) in calipso_skbuff_optptr() 1295 offset = ipv6_find_tlv(skb, sizeof(*ip6_hdr), IPV6_TLV_CALIPSO); in calipso_skbuff_optptr() 1297 return (unsigned char *)ip6_hdr + offset; in calipso_skbuff_optptr() 1318 struct ipv6hdr *ip6_hdr; in calipso_skbuff_setattr() local 1324 ip6_hdr = ipv6_hdr(skb); in calipso_skbuff_setattr() 1325 if (ip6_hdr->nexthdr == NEXTHDR_HOP) { in calipso_skbuff_setattr() 1326 hop = (struct ipv6_opt_hdr *)(ip6_hdr + 1); in calipso_skbuff_setattr() 1349 ip6_hdr = ipv6_hdr(skb); /* Reset as skb_cow() may have moved it */ in calipso_skbuff_setattr() 1356 memmove((char *)ip6_hdr - len_delta, ip6_hdr, in calipso_skbuff_setattr() [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A 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()
|
| H A D | skf_net_off.c | 79 const int offset_proto = offsetof(struct ip6_hdr, ip6_nxt); in sk_set_filter() 80 const int offset_dport = sizeof(struct ip6_hdr) + offsetof(struct udphdr, dest); in sk_set_filter()
|
| H A D | udpgso.c | 43 #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 D | udpgso_bench_tx.c | 538 hdrlen = sizeof(struct ip6_hdr) + sizeof(struct udphdr); in parse_opts()
|
| /linux/net/batman-adv/ |
| H A D | main.c | 341 struct ipv6hdr ip6_hdr_tmp, *ip6_hdr; in batadv_skb_set_priority() local 371 ip6_hdr = skb_header_pointer(skb, offset + sizeof(*ethhdr), in batadv_skb_set_priority() 372 sizeof(*ip6_hdr), &ip6_hdr_tmp); in batadv_skb_set_priority() 373 if (!ip6_hdr) in batadv_skb_set_priority() 375 prio = (ipv6_get_dsfield(ip6_hdr) & 0xfc) >> 5; in batadv_skb_set_priority()
|
| /linux/tools/testing/selftests/drivers/net/hw/ |
| H A D | toeplitz.c | 195 addrs = pkt + offsetof(struct ip6_hdr, ip6_src); in verify_rxhash() 348 __set_filter(fd, offsetof(struct ip6_hdr, ip6_nxt), proto, in set_filter() 349 sizeof(struct ip6_hdr) + off_dport); in set_filter()
|
| /linux/drivers/net/ethernet/meta/fbnic/ |
| H A D | fbnic_txrx.c | 468 struct ipv6hdr *ip6_hdr; in fbnic_features_check_encap_gso() local 502 ip6_hdr = ipv6_hdr(skb); in fbnic_features_check_encap_gso() 503 if (ip6_hdr->version != 6) in fbnic_features_check_encap_gso() 506 l4_hdr = ip6_hdr->nexthdr; in fbnic_features_check_encap_gso() 507 start = (unsigned char *)ip6_hdr - skb->data + sizeof(struct ipv6hdr); in fbnic_features_check_encap_gso()
|