Replies: 2 comments 3 replies
-
Hi @fengzx33, as I mentioned in #330 (comment), currently libbpfgo lacks support of libbpf doesn't use them internally, it just externalizes them.
Would you be interested in implementing (wrapping) these uapi in libbpfgo making them available? |
Beta Was this translation helpful? Give feedback.
-
maybe I'm missing context here, but those helpers are to be used by eBPF programs and not by userland (despite being declared in UAPI, because of kernel off-tree compilation needs), no ? Also, @mozillazg has provided a good example of a socket program in the issue: #329, which could also serve as basis for an sk_msg example as well. |
Beta Was this translation helpful? Give feedback.
-
I found that libbpfgo haven't an api, which can attach SEC("sk_msg") , what should i do? thanks
example: https://github.com/dafu-wu/istio-tcpip-bypass/blob/796d738babee7da77815ad2819a69d37d8472dea/bpf/bpf_redir.c#L9
Beta Was this translation helpful? Give feedback.
All reactions