From: Lawrence Brakmo
Date: Tue, 13 Jun 2017 10:59:55 -0700
> +SEC("sockops")
> +int bpf_rwnd(struct __sk_buff *skb)
> +{
> + struct bpf_socket_ops *skops = (struct bpf_socket_ops *) skb;
> + char fmt1[] = "BPF command: %d\n";
> + char fmt2[] = " Returning %d\n";
> + int op;
> +
The sample bpf program, tcp_rwnd_kern.c, sets the initial
advertized window to 40 packets in an environment where
distinct IPv6 prefixes indicate that both hosts are not
in the same data center.
Signed-off-by: Lawrence Brakmo
---
samples/bpf/Makefile| 1 +
samples/bpf/tcp_rwnd_kern.c |