Previous: , Up: Rtnetlink API   [Contents][Index]


2.3.3 Address Messages

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

Datatype: addr-message

This datatype represents an address message with its routing attributes. This type of message is expected when using the RTM_*ADDR message types.

family

The network family, either AF_INET for IPv4 addresses, or AF_INET6 for IPv6 addresses.

prefix-len

The prefix length, i.e. the length of the prefix mask, in bits, if defined for the address family.

flags

Address 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.

scope

The address scope.

index

The index of the device this address is for.

attrs

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