We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6953518 commit f4dea96Copy full SHA for f4dea96
samples/bpf/tcp_basertt_kern.c
@@ -47,7 +47,7 @@ int bpf_basertt(struct bpf_sock_ops *skops)
47
case BPF_SOCK_OPS_BASE_RTT:
48
n = bpf_getsockopt(skops, SOL_TCP, TCP_CONGESTION,
49
cong, sizeof(cong));
50
- if (!n && !__builtin_memcmp(cong, nv, sizeof(nv)+1)) {
+ if (!n && !__builtin_memcmp(cong, nv, sizeof(nv))) {
51
/* Set base_rtt to 80us */
52
rv = 80;
53
} else if (n) {
0 commit comments