Family rt-addr
netlink specification¶
Summary¶
Address configuration over rtnetlink.
Operations¶
newaddr¶
Add new address
- attribute-set:
- do:
- request
- attributes:
[
ifa-family
,ifa-flags
,ifa-prefixlen
,ifa-scope
,ifa-index
,ifa-address
,ifa-label
,ifa-local
,ifa-cacheinfo
]
deladdr¶
Remove address
- attribute-set:
- do:
- request
- attributes:
[
ifa-family
,ifa-flags
,ifa-prefixlen
,ifa-scope
,ifa-index
,ifa-address
,ifa-local
]
getaddr¶
Dump address information.
- attribute-set:
- dump:
- request
- attributes:
[
ifa-index
]
- reply
- attributes:
[
ifa-family
,ifa-flags
,ifa-prefixlen
,ifa-scope
,ifa-index
,ifa-address
,ifa-label
,ifa-local
,ifa-cacheinfo
]
Multicast groups¶
rtnlgrp-ipv4-ifaddr
rtnlgrp-ipv6-ifaddr
Definitions¶
ifaddrmsg¶
- type:
struct
- members:
- ifa-family (
u8
): - ifa-prefixlen (
u8
): - ifa-flags (
u8
): - ifa-scope (
u8
): - ifa-index (
u32
):
- ifa-family (
ifa-cacheinfo¶
- type:
struct
- members:
- ifa-prefered (
u32
): - ifa-valid (
u32
): - cstamp (
u32
): - tstamp (
u32
):
- ifa-prefered (
ifa-flags¶
- type:
flags
- entries:
- secondary:
- nodad:
- optimistic:
- dadfailed:
- homeaddress:
- deprecated:
- tentative:
- permanent:
- managetempaddr:
- noprefixroute:
- mcautojoin:
- stable-privacy:
Attribute sets¶
addr-attrs¶
ifa-address (binary
)¶
- display-hint:
ipv4
ifa-local (binary
)¶
- display-hint:
ipv4
ifa-label (string
)¶
ifa-broadcast (binary
)¶
- display-hint:
ipv4
ifa-anycast (binary
)¶
ifa-cacheinfo (binary
)¶
- struct:
ifa-multicast (binary
)¶
ifa-flags (u32
)¶
- enum:
- enum-as-flags:
True