Page MenuHomeFreeBSD

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

Authored by glebius on Mon, Jan 20, 9:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Feb 1, 10:29 AM
Unknown Object (File)
Fri, Jan 31, 11:01 PM
Unknown Object (File)
Sun, Jan 26, 7:35 PM
Unknown Object (File)
Sat, Jan 25, 8:37 AM
Unknown Object (File)
Wed, Jan 22, 8:33 PM
Unknown Object (File)
Wed, Jan 22, 12:59 PM
Unknown Object (File)
Wed, Jan 22, 5:38 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 61824
Build 58708: 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.Sat, Jan 25, 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.Fri, Jan 31, 11:19 PM
This revision is now accepted and ready to land.Sat, Feb 1, 12:04 AM