Home
last modified time | relevance | path

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

/system/netd/bpf_progs/
Doffload.c38 int l2_header_size = is_ethernet ? sizeof(struct ethhdr) : 0; in do_forward() local
48 if (data + l2_header_size + sizeof(*ip6) > data_end) return TC_ACT_OK; in do_forward()
119 l2_header_size = sizeof(struct ethhdr); in do_forward()
121 if (bpf_skb_change_head(skb, l2_header_size, /*flags*/ 0)) { in do_forward()
133 if (data + l2_header_size + sizeof(*ip6) > data_end) { in do_forward()
Dclatd.c43 const int l2_header_size = is_ethernet ? sizeof(struct ethhdr) : 0; in nat64() local
53 if (data + l2_header_size + sizeof(*ip6) > data_end) return TC_ACT_OK; in nat64()
157 if (data + l2_header_size + sizeof(struct iphdr) > data_end) return TC_ACT_SHOT; in nat64()