Home
last modified time | relevance | path

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

/system/netd/bpf_progs/
Dclatd.c53 static inline __always_inline int nat64(struct __sk_buff* skb, bool is_ethernet) { in nat64() argument
54 const int l2_header_size = is_ethernet ? sizeof(struct ethhdr) : 0; in nat64()
57 const struct ethhdr* const eth = is_ethernet ? data : NULL; // used iff is_ethernet in nat64()
58 const struct ipv6hdr* const ip6 = is_ethernet ? (void*)(eth + 1) : data; in nat64()
69 if (is_ethernet && (eth->h_proto != htons(ETH_P_IPV6))) return TC_ACT_OK; in nat64()
106 if (is_ethernet) { in nat64()
149 if (is_ethernet) { in nat64()