Home
last modified time | relevance | path

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

/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/bpf/include/netfirewall/
H A Dnetfirewall_utils.h69 struct ipv6hdr ip6h = { 0 }; in is_l4_protocol() local
70 bpf_skb_load_bytes(skb, l3_nhoff, &ip6h, sizeof(struct ipv6hdr)); in is_l4_protocol()
72 return ip6h.nexthdr == protocol; in is_l4_protocol()
132 struct ipv6hdr ip6h = { 0 }; in load_l4_protocol() local
133 bpf_skb_load_bytes(skb, l3_nhoff, &ip6h, sizeof(struct ipv6hdr)); in load_l4_protocol()
135 *protocol = ip6h.nexthdr; in load_l4_protocol()
182 struct ipv6hdr ip6h = { 0 }; in load_l3_v6_addrs() local
183 bpf_skb_load_bytes(skb, l3_nhoff, &ip6h, sizeof(struct ipv6hdr)); in load_l3_v6_addrs()
185 *saddr = ip6h.saddr; in load_l3_v6_addrs()
186 *daddr = ip6h.daddr; in load_l3_v6_addrs()