summaryrefslogtreecommitdiff
path: root/include/linux/ctype.h
diff options
context:
space:
mode:
authorMartin KaFai Lau <kafai@fb.com>2019-02-10 10:22:21 +0300
committerAlexei Starovoitov <ast@kernel.org>2019-02-11 06:46:17 +0300
commitaa65d6960a98fc15a96ce361b26e9fd55c9bccc5 (patch)
tree17f5dda00f78b37e67a25e64bcce5e19c256cab0 /include/linux/ctype.h
parent46f8bc92758c6259bcf945e9216098661c1587cd (diff)
downloadlinux-aa65d6960a98fc15a96ce361b26e9fd55c9bccc5.tar.xz
bpf: Add state, dst_ip4, dst_ip6 and dst_port to bpf_sock
This patch adds "state", "dst_ip4", "dst_ip6" and "dst_port" to the bpf_sock. The userspace has already been using "state", e.g. inet_diag (ss -t) and getsockopt(TCP_INFO). This patch also allows narrow load on the following existing fields: "family", "type", "protocol" and "src_port". Unlike IP address, the load offset is resticted to the first byte for them but it can be relaxed later if there is a use case. This patch also folds __sock_filter_check_size() into bpf_sock_is_valid_access() since it is not called by any where else. All bpf_sock checking is in one place. Signed-off-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/linux/ctype.h')
0 files changed, 0 insertions, 0 deletions