Page MenuHomeFreeBSD

genl: add RPC parser that dumps what sys/rpc/clnt_nl.c sends
ClosedPublic

Authored by glebius on Jan 20 2025, 9:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 6, 1:13 PM
Unknown Object (File)
Mar 16 2025, 9:55 PM
Unknown Object (File)
Mar 4 2025, 7:47 AM
Unknown Object (File)
Feb 24 2025, 1:00 AM
Unknown Object (File)
Feb 17 2025, 1:30 AM
Unknown Object (File)
Feb 12 2025, 6:05 PM
Unknown Object (File)
Feb 9 2025, 4:17 PM
Unknown Object (File)
Feb 9 2025, 6:46 AM
Subscribers

Details

Summary

Use a separate file for the RPC parser. Potentially it may get bigger.
Also to avoid include pollution of the genl.c.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 62186
Build 59070: arc lint + arc unit

Event Timeline

Looks ok to me. I noted a minor style nit. Feel free to ignore it.

usr.bin/genl/genl.c
295

Minor style nit.

Doing a declaration inside a for() loop isn't what
man style recommends. If you jut cribbed this
from the old code, then it's ok.

This revision is now accepted and ready to land.Jan 25 2025, 2:33 AM
usr.bin/genl/genl.c
295

This was some time ago. Today's style(9) actually explicitly allows to do that, which I love.

Remove the "nl" suffix from the Netlink family name. This is unneeded
tautology. You will see just "rpc" in the genl(1) output. Application
will lookup just "rpc" in the Netlink.

The Linux habit (and our new developing habit) us that Netlink families
are named with what they do, no "nl" prefixes or suffixes, except the
special "netlink control" family which is "nlctrl".

This revision now requires review to proceed.Jan 31 2025, 11:19 PM
This revision is now accepted and ready to land.Feb 1 2025, 12:04 AM