Previous: Link Messages, Up: Rtnetlink API [Contents][Index]
The (netlink route addr) package defines the following data type:
This datatype represents an address message with its routing attributes. This type of message is expected when using the RTM_*ADDR message types.
familyThe network family, either AF_INET for IPv4 addresses, or AF_INET6
for IPv6 addresses.
prefix-lenThe prefix length, i.e. the length of the prefix mask, in bits, if defined for the address family.
flagsAddress flags. This can be a flag word of IFA_F_SECONDARY for secondary
address (old alias interface), IFA_F_PERMANENT for a permanent
address set by the user and other undocumented flags.
scopeThe address scope.
indexThe index of the device this address is for.
attrsA list of attributes. This field must contain a list of nl-data
structures, not a structure by itself.