From: Lawrence Brakmo <[email protected]>
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;
> + int rv = -1;
Longest to shortest line for local variable declarations please.
> +
> + // For testing purposes, only execute rest of BPF program
> + // if neither port numberis 55601
Again, please use non-C++ comments.
Thank you.