Family rt-addr netlink specification¶
Summary¶
Address configuration over rtnetlink.
Operations¶
newaddr¶
Add new address
- attribute-set:
- do:
- request
- attributes:
[
address,label,local,cacheinfo]
deladdr¶
Remove address
- attribute-set:
- do:
- request
- attributes:
[
address,local]
getaddr¶
Dump address information.
- attribute-set:
- dump:
- request
- attributes:
[]
- reply
- attributes:
[
address,label,local,cacheinfo]
getmulticast¶
Get / dump multicast addresses. ifa-family must select the address family: AF_INET or AF_INET6 for the IP multicast groups joined on a device, AF_PACKET for the link-layer multicast addresses in the device filter. Link-layer entries added explicitly, e.g. with SIOCADDMULTI or “bridge fdb add ... self”, rather than by a protocol join are reported with the global flag set. For AF_PACKET a non-zero ifa-index restricts the dump to that device and ifa-prefixlen, ifa-flags and ifa-scope must be zero, AF_INET and AF_INET6 apply this and target-netnsid with NETLINK_GET_STRICT_CHK only.
- attribute-set:
- fixed-header:
- do:
- request
- attributes:
[]
- reply
- attributes:
[
multicast,mc-users,cacheinfo,flags,target-netnsid]
- dump:
- request
- attributes:
[
target-netnsid]
- reply
- attributes:
[
multicast,mc-users,cacheinfo,flags,target-netnsid]
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
- name-prefix:
ifa-f-
- enum-name:
None
- entries:
- secondary:
- nodad:
- optimistic:
- dadfailed:
- homeaddress:
- deprecated:
- tentative:
- permanent:
- managetempaddr:
- noprefixroute:
- mcautojoin:
- stable-privacy:
- global:
Attribute sets¶
addr-attrs¶
address (binary)¶
- display-hint:
ipv4-or-v6
local (binary)¶
- display-hint:
ipv4-or-v6
label (string)¶
broadcast (u32)¶
- byte-order:
big-endian
- display-hint:
ipv4
anycast (binary)¶
cacheinfo (binary)¶
- struct:
multicast (binary)¶
flags (u32)¶
- enum:
- enum-as-flags:
True