Home
last modified time | relevance | path

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

/system/netd/bpf_progs/
Doffload.c102 const int tcp_overhead = sizeof(struct ipv6hdr) + sizeof(struct tcphdr) + 12; in do_forward() local
103 const int mss = pmtu - tcp_overhead; in do_forward()
104 const uint64_t payload = bytes - tcp_overhead; in do_forward()
106 bytes = tcp_overhead * packets + payload; in do_forward()
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; \