Home
last modified time | relevance | path

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

/system/netd/bpf_progs/
Doffload.c41 struct ethhdr* eth = is_ethernet ? data : NULL; // used iff is_ethernet in do_forward() local
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()
129 eth = data; in do_forward()
130 ip6 = (void*)(eth + 1); in do_forward()
154 *eth = v->macHeader; in do_forward()
Dclatd.c46 const struct ethhdr* const eth = is_ethernet ? data : NULL; // used iff is_ethernet in nat64() local
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()
92 eth2 = *eth; // Copy over the ethernet header (src/dst mac) in nat64()