From: Lawrence Brakmo <[email protected]>
Date: Tue, 13 Jun 2017 10:59:50 -0700
> diff --git a/include/linux/filter.h b/include/linux/filter.h
> index a20ba40..8f69b8b 100644
> --- a/include/linux/filter.h
> +++ b/include/linux/filter.h
> @@ -899,4 +899,14 @@ static inline int bpf_tell_extensions(void)
> return SKF_AD_MAX;
> }
>
> +struct bpf_socket_ops_kern {
> + struct sock *sk;
> + __u32 is_req_sock:1;
> + __u32 op;
> + union {
> + __u32 reply;
> + __u32 replylong[4];
> + };
> +};
> +
> #endif /* __LINUX_FILTER_H__ */
In non-UAPI headers, "u32", "u16", "u8", etc. without leading underscores
shoudl be used.