Next: Address Messages, Previous: Routing Attributes, Up: Rtnetlink API   [Contents][Index]


4.3.2 Link Messages

The (netlink route link) package defines the following data type:

Datatype: link-message ¶

This datatype represents a link message with its routing attributes. This type of message is expected when using the RTM_*LINK message types.

family

The network family, defined as AF_UNSPEC in the rtnetlink documentation, although it holds different values in practice.

type

The device type.

index

The index of the device. This is used to select a specific device by its index, or 0 to not filter by device index.

flags

The device flags. See man 7 netdevices for a list.

attrs

A list of attributes. This field must contain a list of nl-data structures, not a structure by itself.