Home
last modified time | relevance | path

Searched refs:ip6h (Results 1 – 3 of 3) sorted by relevance

/include/net/netfilter/
Dnf_tables_ipv6.h33 struct ipv6hdr *ip6h, _ip6h; in __nft_set_pktinfo_ipv6_validate() local
39 ip6h = skb_header_pointer(skb, skb_network_offset(skb), sizeof(*ip6h), in __nft_set_pktinfo_ipv6_validate()
41 if (!ip6h) in __nft_set_pktinfo_ipv6_validate()
44 if (ip6h->version != 6) in __nft_set_pktinfo_ipv6_validate()
47 pkt_len = ntohs(ip6h->payload_len); in __nft_set_pktinfo_ipv6_validate()
48 if (pkt_len + sizeof(*ip6h) > skb->len) in __nft_set_pktinfo_ipv6_validate()
81 struct ipv6hdr *ip6h; in nft_set_pktinfo_ipv6_ingress() local
85 if (!pskb_may_pull(skb, sizeof(*ip6h))) in nft_set_pktinfo_ipv6_ingress()
88 ip6h = ipv6_hdr(skb); in nft_set_pktinfo_ipv6_ingress()
89 if (ip6h->version != 6) in nft_set_pktinfo_ipv6_ingress()
[all …]
Dnf_queue.h60 static inline u32 hash_v6(const struct ipv6hdr *ip6h, u32 initval) in hash_v6() argument
64 if ((__force u32)ip6h->saddr.s6_addr32[3] < in hash_v6()
65 (__force u32)ip6h->daddr.s6_addr32[3]) { in hash_v6()
66 a = (__force u32) ip6h->saddr.s6_addr32[3]; in hash_v6()
67 b = (__force u32) ip6h->daddr.s6_addr32[3]; in hash_v6()
69 b = (__force u32) ip6h->saddr.s6_addr32[3]; in hash_v6()
70 a = (__force u32) ip6h->daddr.s6_addr32[3]; in hash_v6()
73 if ((__force u32)ip6h->saddr.s6_addr32[1] < in hash_v6()
74 (__force u32)ip6h->daddr.s6_addr32[1]) in hash_v6()
75 c = (__force u32) ip6h->saddr.s6_addr32[1]; in hash_v6()
[all …]
/include/net/
Ddst_metadata.h224 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in ipv6_tun_rx_dst() local
226 return __ipv6_tun_set_dst(&ip6h->saddr, &ip6h->daddr, in ipv6_tun_rx_dst()
227 ipv6_get_dsfield(ip6h), ip6h->hop_limit, in ipv6_tun_rx_dst()
228 0, ip6_flowlabel(ip6h), flags, tunnel_id, in ipv6_tun_rx_dst()