Skip to content
Commit 35046aea authored by He Zhe's avatar He Zhe Committed by Bruce Ashfield
Browse files

bpftool: Fix undefined bpf macro for unix socket



42b2eec2 ("bpftool: Query only cgroup-related attach types") is for the
latest mainline, in which the following marcos were introduced since v6.7
while we're at v6.6. Since 42b2eec2 will not be back-ported to uptream
stable tree, let's remove the marcos.

| cgroup.c:33:9: error: 'BPF_CGROUP_UNIX_CONNECT' undeclared here
(not in a function); did you mean 'BPF_CGROUP_INET6_CONNECT'?
|    33 |         BPF_CGROUP_UNIX_CONNECT,
|       |         ^~~~~~~~~~~~~~~~~~~~~~~
|       |         BPF_CGROUP_INET6_CONNECT
| cgroup.c:36:9: error: 'BPF_CGROUP_UNIX_GETPEERNAME' undeclared here
(not in a function); did you mean 'BPF_CGROUP_INET6_GETPEERNAME'?
|    36 |         BPF_CGROUP_UNIX_GETPEERNAME,
|       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
|       |         BPF_CGROUP_INET6_GETPEERNAME
| cgroup.c:39:9: error: 'BPF_CGROUP_UNIX_GETSOCKNAME' undeclared here
(not in a function); did you mean 'BPF_CGROUP_INET6_GETSOCKNAME'?
|    39 |         BPF_CGROUP_UNIX_GETSOCKNAME,
|       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
|       |         BPF_CGROUP_INET6_GETSOCKNAME
| cgroup.c:42:9: error: 'BPF_CGROUP_UNIX_SENDMSG' undeclared here
(not in a function); did you mean 'BPF_CGROUP_UDP6_SENDMSG'?
|    42 |         BPF_CGROUP_UNIX_SENDMSG,
|       |         ^~~~~~~~~~~~~~~~~~~~~~~
|       |         BPF_CGROUP_UDP6_SENDMSG
| cgroup.c:45:9: error: 'BPF_CGROUP_UNIX_RECVMSG' undeclared here
(not in a function); did you mean 'BPF_CGROUP_UDP6_RECVMSG'?
|    45 |         BPF_CGROUP_UNIX_RECVMSG,
|       |         ^~~~~~~~~~~~~~~~~~~~~~~
|       |         BPF_CGROUP_UDP6_RECVMSG

Fixes: 42b2eec2 ("bpftool: Query only cgroup-related attach types")
Signed-off-by: default avatarHe Zhe <zhe.he@windriver.com>
Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@gmail.com>
parent 9a558d4b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment