Le 29/09/2022 à 03:11, Jakub Kicinski a écrit : > Add documentation about the upcoming Netlink protocol specs. > > Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx> [snip] > +Attribute enums > +--------------- > + > +Older families often define "null" attributes and commands with value > +of ``0`` and named ``unspec``. This is supported (``type: unspec``) > +but should be avoided in new families. The ``unspec`` enum values are > +not used in practice, so just set the value of the first attribute to ``1``. [snip] > +The payload of the attribute is the integer in host order unless ``byte-order`` > +specifies otherwise. > + > +.. _pad_type: > + > +pad > +--- > + > +Special attribute type used for padding attributes which require alignment > +bigger than standard 4B alignment required by netlink (e.g. 64 bit integers). > +There can only be a single attribute of the ``pad`` type in any attribute set > +and it should be automatically used for padding when needed. This answers my question. Nice job! Reviewed-by: Nicolas Dichtel <nicolas.dichtel@xxxxxxxxx>