Home
last modified time | relevance | path

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

/packages/modules/Connectivity/Tethering/bpf_progs/
Doffload.c145 struct tcphdr* tcph = (void*)(ip6 + 1); local
148 if (data + l2_header_size + sizeof(*ip6) + sizeof(*tcph) > data_end)
152 if (tcph->syn || tcph->fin || tcph->rst) TC_PUNT(TCP_CONTROL_PACKET);
437 struct tcphdr* tcph = is_tcp ? (void*)(ip + 1) : NULL; in do_forward4() local
442 if (data + l2_header_size + sizeof(*ip) + sizeof(*tcph) > data_end) in do_forward4()
447 if (tcph->syn || tcph->fin || tcph->rst) TC_PUNT(TCP_CONTROL_PACKET); in do_forward4()
489 .srcPort = is_tcp ? tcph->source : udph->source, in do_forward4()
490 .dstPort = is_tcp ? tcph->dest : udph->dest, in do_forward4()
554 tcph = is_tcp ? (void*)(ip + 1) : NULL; in do_forward4()
558 …if (data + sizeof(struct ethhdr) + sizeof(*ip) + (is_tcp ? sizeof(*tcph) : sizeof(*udph)) > data_e… in do_forward4()