Page MenuHomeFreeBSD

netlink: add netlink user documentation.
ClosedPublic

Authored by melifaro on Oct 15 2022, 4:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 6, 6:07 PM
Unknown Object (File)
Mon, Nov 4, 2:55 PM
Unknown Object (File)
Fri, Oct 18, 12:35 AM
Unknown Object (File)
Oct 4 2024, 2:09 PM
Unknown Object (File)
Oct 3 2024, 7:03 PM
Unknown Object (File)
Oct 1 2024, 6:03 PM
Unknown Object (File)
Oct 1 2024, 2:21 PM
Unknown Object (File)
Sep 30 2024, 4:29 AM

Details

Summary

Add documentation that initially appeared in D36002.
These manpages address most (if not all) comments from the D36002.
rtnetlink(4) has been expanded to include more details on the netxthops, interfaces, addresses and neighbours.
genetlink(4) has been added.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Warnings
SeverityLocationCodeMessage
Warningshare/man/man4/genetlink.4:147SPELL1Possible Spelling Mistake
Warningshare/man/man4/netlink.4:344SPELL1Possible Spelling Mistake
Warningshare/man/man4/rtnetlink.4:181SPELL1Possible Spelling Mistake
Warningshare/man/man4/rtnetlink.4:518SPELL1Possible Spelling Mistake
Unit
No Test Coverage
Build Status
Buildable 47851
Build 44738: arc lint + arc unit

Event Timeline

Will review the rest later.

share/man/man4/genetlink.4
31
42
43–44

Maybe use "string family name" throughout instead? Having both a string identifier and another id(entifier) of an unspecified type is confusing.

45–46

"the application" or "applications" (leaning toward the latter).

47
49
52

Not sure "families" is right, but there's definitely a word missing.

63–65

Or remove "The".

68

Same as above.

70
72

Needs to say which family id it has, here or somewhere. Here is probably best.

80

What I think you mean.

This revision now requires changes to proceed.Oct 15 2022, 10:59 PM

Done for this round.

share/man/man4/netlink.4
56

VNETs? Not other kinds of network?

67
83
111

Spurious space.

275
share/man/man4/rtnetlink.4
103
104
109

VNET?

134–135
221

Or "The required objects are" if more than 1.

289
292

Is this really restricted to VNETs?

295
308

For brevity and consistency with later ones.

310
340

Is there an active 802.1x standard other than 802.11?

420–422

US spelling

436

(or get rid of "The")

453
462
469
475

Also, VNET?

491
493
503
bapt added inline comments.
share/man/man4/netlink.4
235

NETLINK_DROP_MEMBERSHIP

melifaro marked 32 inline comments as done.

Address the comments.

share/man/man4/genetlink.4
72

GENL_ID_CTRL is the actual Id. I’d rather not specify its value here, to avoid any encouragement for using number instead of a header constant. Also typically we don’t provide such mappings in man page. Thoughts?

share/man/man4/netlink.4
56

Vnets. Or namespaces in Linux land

share/man/man4/rtnetlink.4
109

Yes.

292

Well, yes. Similar to ifconfig. There is a socket option & attribute that allows to interact with the objects in the VNET different from the current one, but it’s not implemented yet.

340

A lot (even too many, maybe). 802.1D is about bridging, including loop prevention protocols, .1Q is about vlans and so on. 802.1X is a standard handling authentication in LAN / wireless. If network is using it, there will be a temporary state when an interface is already able to send/receive frames, but encryption is not negotiated yet. This condition is an example of the aforementioned state.

Other than a few nits all fixable on commit, LGTM. If it matches the implementation, it's good to go.

share/man/man4/genetlink.4
28

Bump on commit.

72

Never mind. I misparsed the whole paragraph. Ignore the noise.

share/man/man4/netlink.4
112

"32-bit" when the length is in bytes doesn't look quite right. For consistency, I'd change the other occurrences as well.

200

"message", maybe?

277
341
This revision is now accepted and ready to land.Nov 1 2022, 2:27 PM
melifaro added inline comments.
share/man/man4/netlink.4
341

Mm, I'm a bit unsure about this one. Technically it's indeed an OS feature, but it sounds a bit abstract to me. We typically say, "X has IPv6 [protocol] support" or "X has TCP [protocol]" and refer to the word "feature" when there is no better word to describe it. Thoughts?

This revision was landed with ongoing or failed builds.Nov 1 2022, 5:08 PM
This revision was automatically updated to reflect the committed changes.
share/man/man4/netlink.4
341

Well, there's definitely a word missing, so we need to choose one to add. I was trying to avoid repeating "protocol", but that would work.