ebpf icon indicating copy to clipboard operation
ebpf copied to clipboard

link: link types are missing in gentypes

Open Asphaltt opened this issue 2 years 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

True, I've been working on gentypes for #1117 and even I find it hard to modify. I'll see whether I can clean it up.

lmb avatar Oct 04 '23 16:10 lmb

link now exposes an iterator. gentypes is still tricky, not sure when i'll get around to it though.

lmb avatar Apr 03 '24 09:04 lmb