Use a separate file for the RPC parser. Potentially it may get bigger.
Also to avoid include pollution of the genl.c.
Details
Details
- Reviewers
rmacklem - Group Reviewers
network - Commits
- rG88cd1e17a7d8: genl: add RPC parser that dumps what sys/rpc/clnt_nl.c sends
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 61824 Build 58708: arc lint + arc unit
Event Timeline
Comment Actions
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 |
usr.bin/genl/genl.c | ||
---|---|---|
295 | This was some time ago. Today's style(9) actually explicitly allows to do that, which I love. |
Comment Actions
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".