rt-addr 族 rt-addr
netlink 规范¶
摘要¶
通过 rtnetlink 进行地址配置。
操作¶
newaddr¶
添加新地址
- 属性集:
- do:
- 请求
- 属性:
[
ifa-family
,ifa-flags
,ifa-prefixlen
,ifa-scope
,ifa-index
,ifa-address
,ifa-label
,ifa-local
,ifa-cacheinfo
]
deladdr¶
删除地址
- 属性集:
- do:
- 请求
- 属性:
[
ifa-family
,ifa-flags
,ifa-prefixlen
,ifa-scope
,ifa-index
,ifa-address
,ifa-local
]
getaddr¶
转储地址信息。
- 属性集:
- 转储:
- 请求
- 属性:
[
ifa-index
]
- 回复
- 属性:
[
ifa-family
,ifa-flags
,ifa-prefixlen
,ifa-scope
,ifa-index
,ifa-address
,ifa-label
,ifa-local
,ifa-cacheinfo
]
多播组¶
rtnlgrp-ipv4-ifaddr
rtnlgrp-ipv6-ifaddr
定义¶
ifaddrmsg¶
- 类型:
结构体
- 成员:
- ifa-family (
u8
): - ifa-prefixlen (
u8
): - ifa-flags (
u8
): - ifa-scope (
u8
): - ifa-index (
u32
):
- ifa-family (
ifa-cacheinfo¶
- 类型:
结构体
- 成员:
- ifa-prefered (
u32
): - ifa-valid (
u32
): - cstamp (
u32
): - tstamp (
u32
):
- ifa-prefered (
ifa-flags¶
- 类型:
标志
- 条目:
- secondary:
- nodad:
- optimistic:
- dadfailed:
- homeaddress:
- deprecated:
- tentative:
- permanent:
- managetempaddr:
- noprefixroute:
- mcautojoin:
- stable-privacy:
属性集¶
addr-attrs¶
ifa-address (binary
)¶
- 显示提示:
ipv4
ifa-local (binary
)¶
- 显示提示:
ipv4
ifa-label (string
)¶
ifa-broadcast (binary
)¶
- 显示提示:
ipv4
ifa-anycast (binary
)¶
ifa-cacheinfo (binary
)¶
- 结构体:
ifa-multicast (binary
)¶
ifa-flags (u32
)¶
- 枚举:
- enum-as-flags:
True