Home
last modified time | relevance | path

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

/system/netd/bpf_progs/
Doffload.c37 static inline __always_inline int do_forward(struct __sk_buff* skb, bool is_ethernet) { in do_forward() argument
38 int l2_header_size = is_ethernet ? sizeof(struct ethhdr) : 0; in do_forward()
41 struct ethhdr* eth = is_ethernet ? data : NULL; // used iff is_ethernet in do_forward()
42 struct ipv6hdr* ip6 = is_ethernet ? (void*)(eth + 1) : data; in do_forward()
51 if (is_ethernet && (eth->h_proto != htons(ETH_P_IPV6))) return TC_ACT_OK; in do_forward()
117 if (!is_ethernet) { in do_forward()
118 is_ethernet = true; in do_forward()
Dclatd.c42 static inline __always_inline int nat64(struct __sk_buff* skb, bool is_ethernet) { in nat64() argument
43 const int l2_header_size = is_ethernet ? sizeof(struct ethhdr) : 0; in nat64()
46 const struct ethhdr* const eth = is_ethernet ? data : NULL; // used iff is_ethernet in nat64()
47 const struct ipv6hdr* const ip6 = is_ethernet ? (void*)(eth + 1) : data; in nat64()
56 if (is_ethernet && (eth->h_proto != htons(ETH_P_IPV6))) return TC_ACT_OK; in nat64()
91 if (is_ethernet) { in nat64()
159 if (is_ethernet) { in nat64()