From: Lawrence Brakmo <bra...@fb.com> Date: Tue, 13 Jun 2017 10:59:53 -0700
> + > + // Check for TIMEOUT_INIT operation and IPv6 addresses > + if (op == BPF_SOCKET_OPS_TIMEOUT_INIT && > + skops->family == AF_INET6) { > + > + // If the first 5.5 bytes of the IPv6 address are the same > + // then both hosts are in the same datacenter > + // so use an RTO of 10ms > + if (skops->local_ip6[0] == skops->remote_ip6[0] && > + (skops->local_ip6[1] & 0xfff00000) == > + (skops->remote_ip6[1] & 0xfff00000)) > + rv = 10; > + } I know this is just a sample program, but please do not use C++ comments in C code. Thank you.