diff options
author | Alexei Starovoitov <ast@plumgrid.com> | 2014-07-24 19:38:21 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-25 02:27:17 -0400 |
commit | 2695fb552cbef1029aa025a98acb80cc51d66de5 (patch) | |
tree | c291280a14b5e77e729237fdb4d1c44544fc777c /lib/test_bpf.c | |
parent | dd66d386552ad3687530c1bd0e001e96a060cc0f (diff) |
net: filter: rename 'struct sock_filter_int' into 'struct bpf_insn'
eBPF is used by socket filtering, seccomp and soon by tracing and
exposed to userspace, therefore 'sock_filter_int' name is not accurate.
Rename it to 'bpf_insn'
Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/test_bpf.c')
-rw-r--r-- | lib/test_bpf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/test_bpf.c b/lib/test_bpf.c index c579e0f58818..5f48623ee1a7 100644 --- a/lib/test_bpf.c +++ b/lib/test_bpf.c | |||
@@ -66,7 +66,7 @@ struct bpf_test { | |||
66 | const char *descr; | 66 | const char *descr; |
67 | union { | 67 | union { |
68 | struct sock_filter insns[MAX_INSNS]; | 68 | struct sock_filter insns[MAX_INSNS]; |
69 | struct sock_filter_int insns_int[MAX_INSNS]; | 69 | struct bpf_insn insns_int[MAX_INSNS]; |
70 | } u; | 70 | } u; |
71 | __u8 aux; | 71 | __u8 aux; |
72 | __u8 data[MAX_DATA]; | 72 | __u8 data[MAX_DATA]; |
@@ -1807,7 +1807,7 @@ static struct sk_filter *generate_filter(int which, int *err) | |||
1807 | 1807 | ||
1808 | fp->len = flen; | 1808 | fp->len = flen; |
1809 | memcpy(fp->insnsi, tests[which].u.insns_int, | 1809 | memcpy(fp->insnsi, tests[which].u.insns_int, |
1810 | fp->len * sizeof(struct sock_filter_int)); | 1810 | fp->len * sizeof(struct bpf_insn)); |
1811 | 1811 | ||
1812 | sk_filter_select_runtime(fp); | 1812 | sk_filter_select_runtime(fp); |
1813 | break; | 1813 | break; |