Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zebra: Note when the netlink DUMP command is interrupted
There exists code paths in the linux kernel where a dump command will be interrupted( I am not sure I understand what this really means ) and the data sent back from the kernel is wrong or incomplete. At this point in time I am not 100% certain what should be done, but let's start noticing that this has happened so we can formulate a plan or allow the end operator to know bad stuff is a foot at the circle K. Signed-off-by: Donald Sharp <[email protected]>
- Loading branch information
2f71996
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is a snippet from libmnl https://git.netfilter.org/libmnl/tree/src/callback.c#n69:
that makes netlink calls fail with EINTR if a message with such flag was received.
Now here is an example of a program that calls libmnl functions https://git.netfilter.org/nftables/tree/src/iface.c#n119
(in the latter snippet, EINTR comes from the call to
mnl_socket_recvfrom()