Skip to content

addr: add builders for remaining ip address add options - #191

Open
cathay4t wants to merge 1 commit into
rust-netlink:mainfrom
cathay4t:addr-add-builder
Open

cathay4t wants to merge 1 commit into
rust-netlink:mainfrom
cathay4t:addr-add-builder

Conversation

@cathay4t

@cathay4t cathay4t commented Oct 1, 2026

Copy link
Copy Markdown
Member

AddressMessageBuilder and AddressAddRequest have no method to set
ifa_scope, IFA_FLAGS, peer, broadcast, anycast, label, route
priority, cache information and protocol, which are required by the
ip address add command of iproute2. Users have to modify the message
with message_mut() to append the attributes manually.

Add builder methods for all of them, so iproute-rs can construct address
messages without touching raw attributes.

`AddressMessageBuilder` and `AddressAddRequest` have no method to set
`ifa_scope`, `IFA_FLAGS`, peer, broadcast, anycast, label, route
priority, cache information and protocol, which are required by the
`ip address add` command of iproute2. Users have to modify the message
with `message_mut()` to append the attributes manually.

Add builder methods for all of them, so iproute-rs can construct address
messages without touching raw attributes.

Signed-off-by: Gris Ge <cnfourt@gmail.com>
@cathay4t
cathay4t enabled auto-merge (rebase) October 1, 2026 01:48
@cathay4t
cathay4t disabled auto-merge October 1, 2026 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant