Home
last modified time | relevance | path

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

/packages/modules/Connectivity/Tethering/bpf_progs/
Doffload.c125 const void* data_end = (void*)(long)skb->data_end; local
130 if (data + l2_header_size + sizeof(*ip6) > data_end) return TC_ACT_OK;
148 if (data + l2_header_size + sizeof(*ip6) + sizeof(*tcph) > data_end)
238 data_end = (void*)(long)skb->data_end;
243 if (data + sizeof(struct ethhdr) + sizeof(*ip6) > data_end) {
372 const void* data_end = (void*)(long)skb->data_end; in do_forward4() local
377 if (data + l2_header_size + sizeof(*ip) > data_end) return TC_ACT_OK; in do_forward4()
435 if (data + l2_header_size + sizeof(*ip) + 8 > data_end) TC_PUNT(SHORT_L4_HEADER); in do_forward4()
442 if (data + l2_header_size + sizeof(*ip) + sizeof(*tcph) > data_end) in do_forward4()
450 if (data + l2_header_size + sizeof(*ip) + sizeof(*udph) > data_end) in do_forward4()
[all …]
Dtest.c33 void *data_end = (void *)(long)ctx->data_end; variable
41 if (data + hsize > data_end) return XDP_PASS;
Dbpf_net_helpers.h71 if (skb->data_end - skb->data < len) bpf_skb_pull_data(skb, len); in try_make_readable()