ebpf icon indicating copy to clipboard operation
ebpf copied to clipboard

link: link types are missing in gentypes

Open Asphaltt opened this issue 9 months ago • 1 comments

By referencing bpftool link, there are two missing functions: LinkGetNextID() and NewLinkFromID().

Then, when I want to implement them, LinkGetNextIdAttr, LinkGetNextID() and LinkGetFDByID() are missing in sys/types.go generated by gentypes.

I'm not familiar with gentypes to add the missing attr and funcs.

As a result, I'm not able to list all links. Or, I have to hack link/link.go to implement the missing functions by clumsy way.

Asphaltt avatar Oct 04 '23 10:10 Asphaltt