Page MenuHomeFreeBSD

genl: add new command to list genetlink(4)

Authored by bapt on May 30 2023, 10:08 AM.
Referenced Files
Unknown Object (File)
Sun, Sep 3, 2:06 PM
Unknown Object (File)
Aug 14 2023, 9:49 AM
Unknown Object (File)
Aug 11 2023, 9:12 AM
Unknown Object (File)
Jul 20 2023, 10:10 PM
Unknown Object (File)
Jul 19 2023, 8:31 AM
Unknown Object (File)
Jul 17 2023, 12:34 PM
Unknown Object (File)
Jul 12 2023, 9:25 AM
Unknown Object (File)
Jun 22 2023, 6:32 PM



This commands list genetlink protocols and its operations and

$ genl
Name: nlctrl
ID: 0x10, Version: 00, header size: 2, max attributes: 10
supported operations:

  • ID: 0x3, Capabilities: 0xe (can modify; can get/dump;

has policy)
multicast groups:

  • ID: 0x30, Name: notify

Name: carp
ID: 0x11, Version: 00, header size: 2, max attributes: 2
supported operations:

  • ID: 0x1, Capabilities: 0xe (can modify; can get/dump;

has policy)

  • ID: 0x2, Capabilities: 0xb (requires admin permission;

can modify; has policy)

Diff Detail

rG FreeBSD src repository
Lint Not Applicable
Tests Not Applicable

Event Timeline

bapt requested review of this revision.May 30 2023, 10:08 AM

Wow, that's nice!
LGTM, though I'd suggest trying to add structured output from day one. I managed to convert ndp(8) ( D35677 ), so if you could consider looking into that option, that would be awesome!

This revision is now accepted and ready to land.May 30 2023, 10:25 AM

Also, I think our notation is that we have MK_FEATURE for binaries and MK_FEATURE_SUPPORT for the feature support inside binaries. Here we actually need MK_NETLINK. It was added previously but removed in D39678 with the idea that it can be easily re-added once need. Guess it's time to re-add :-)

This revision was automatically updated to reflect the committed changes.