Home
last modified time | relevance | path

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

/packages/modules/Connectivity/Tethering/bpf_progs/
Doffload.c423 const bool is_tcp = !updatetime || (ip->protocol == IPPROTO_TCP); in do_forward4() local
437 struct tcphdr* tcph = is_tcp ? (void*)(ip + 1) : NULL; in do_forward4()
438 struct udphdr* udph = is_tcp ? NULL : (void*)(ip + 1); in do_forward4()
440 if (is_tcp) { 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()
555 udph = is_tcp ? NULL : (void*)(ip + 1); in do_forward4()
558 …if (data + sizeof(struct ethhdr) + sizeof(*ip) + (is_tcp ? sizeof(*tcph) : sizeof(*udph)) > data_e… in do_forward4()
582 const int l4_offs_csum = is_tcp ? ETH_IP4_TCP_OFFSET(check) : ETH_IP4_UDP_OFFSET(check); in do_forward4()
[all …]