Home
last modified time | relevance | path

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

/aosp12/packages/modules/Connectivity/Tethering/bpf_progs/
H A Doffload.c212 const int tcp_overhead = sizeof(struct ipv6hdr) + sizeof(struct tcphdr) + 12; local
213 const int mss = v->pmtu - tcp_overhead;
214 const uint64_t payload = bytes - tcp_overhead;
216 bytes = tcp_overhead * packets + payload;
525 const int tcp_overhead = sizeof(struct iphdr) + sizeof(struct tcphdr) + 12; variable
526 const int mss = v->pmtu - tcp_overhead;
527 const uint64_t payload = bytes - tcp_overhead;
529 bytes = tcp_overhead * packets + payload;
/aosp12/system/netd/bpf_progs/
H A Dnetd.c115 int tcp_overhead = ip_overhead + sizeof(struct tcphdr) + 12; \
116 int mss = mtu - tcp_overhead; \
117 uint64_t payload = bytes - tcp_overhead; \
119 bytes = tcp_overhead * packets + payload; \