Skip to content

Do not panic in NetlinkPayload::Overrun - #50

Merged
cathay4t merged 1 commit into
rust-netlink:mainfrom
cathay4t:main
Aug 25, 2026
Merged

Do not panic in NetlinkPayload::Overrun#50
cathay4t merged 1 commit into
rust-netlink:mainfrom
cathay4t:main

Conversation

@cathay4t

Copy link
Copy Markdown
Member

When an NLMSG_OVERRUN response arrives matching that request
the forward_responses() panics on unimplemented!()

The kernel code never do this. But the kernel document said:

NLMSG_OVERRUN - socket buffer has overflown, not used to date

Hence it might be possible in the future, do decided to do so.

This patch removes the unimplemented!() so the Overrun message is
forwarded to the connection handle; the application must resync its
state upon receiving.

When an NLMSG_OVERRUN response arrives matching that request
the forward_responses() panics on unimplemented!()

The kernel code never do this. But the kernel document said:

    NLMSG_OVERRUN - socket buffer has overflown, not used to date

Hence it might be possible in the future, do decided to do so.

This patch removes the `unimplemented!()` so the Overrun message is
forwarded to the connection handle; the application must resync its
state upon receiving.

Signed-off-by: Gris Ge <cnfourt@gmail.com>
@cathay4t
cathay4t merged commit 51f99de into rust-netlink:main Aug 25, 2026
4 checks passed
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