(netlink route link) package defines the following data type:
This datatype represents a link message with its routing attributes. This type of message is expected when using the RTM_*LINK message types.
The network family, defined as
AF_UNSPEC in the rtnetlink documentation,
although it holds different values in practice.
The device type.
The index of the device. This is used to select a specific device by its index, or 0 to not filter by device index.
The device flags. See
man 7 netdevices for a list.
A list of attributes. This field must contain a list of
structures, not a structure by itself.