Skip to content

Conversation

hch12907
Copy link

@hch12907 hch12907 commented Jan 4, 2025

This reverts commit 53a4c4e.

While the idea of having forward compatibility was sound, the commit effectively disallowed any Netlink message to be created:

    let mut packet = NetlinkMessage {
        header: NetlinkHeader {
            sequence_number: 1,
            flags: NLM_F_DUMP | NLM_F_REQUEST,
            ..Default::default()
        },
        payload: RtnlMessage::GetLink(LinkMessage::default()).into(),
    };
error[E0639]: cannot create non-exhaustive struct using struct expression

This is just silly.

@cathay4t
Copy link
Member

Please use NetlinkMessage::new. For example: https://github.com/rust-netlink/netlink-packet-route/blob/main/src/tests.rs#L31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants