On Tue, Sep 8, 2020 at 2:58 AM Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote: > > On Mon, 2020-09-07 at 22:55 +0530, Krishna Chaitanya wrote: > > > > > I wonder if the netlink policy export I wrote for the kernel could be > > > used to generate attribute descriptions? Even if it means just running a > > > tool in a latest kernel VM to do it. > > Can you please point me to it? But yes, auto-generating those should be handy. > > Probably can pick up the header file from sources in kernel.org > > instead of booting > > into a VM (depending on how your tools work)? > > No no, I meant at runtime from the *policy* export, not the header file. > > See net/netlink/policy.c and this patch in the userland code: > > https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=cc889b82412450dec762551ac867bd2896656ddc Ah okay, got it, thanks.