Skip to content

Add NeighborMessageBuilder #139

@dvaembit

Description

@dvaembit

I'm trying to write a test case for some code that uses rtnetlink. I need to construct a NeighborMessage from netlink-packet-route. Since that is marked as #[non_exhaustive] I cannot construct one directly. I am constructing a default message and mutate it like so:

let mut msg = NeighborMessage::default();
msg.headers = ...;
msg.attributes = ...;

However when I look through the documentation I see a LinkMessageBuilder for LinkMessage and a RouteMessageBuilder for RouteMessage. It makes me expect to see a NeighborMessageBuilder. Should there be?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions