Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iproute/linux: try to improve flags when sending del messages
Flags are not the same between NEW and DELETE request. In file netlink.h we can see: /* Modifiers to NEW request */ #define NLM_F_REPLACE 0x100 /* Override existing */ #define NLM_F_EXCL 0x200 /* Do not touch, if it exists */ #define NLM_F_CREATE 0x400 /* Create, if it does not exist */ #define NLM_F_APPEND 0x800 /* Add to end of list */ /* Modifiers to DELETE request */ #define NLM_F_NONREC 0x100 /* Do not delete recursively */ #define NLM_F_BULK 0x200 /* Delete multiple objects */ So NLM_F_BULK is the same value than NLM_F_EXCL. NLM_F_BULK has been added in this kernel commit: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=a6cec0bcd34264be8887791594be793b3f12719f When this flag is set, pyroute now get a lot of error everywhere when trying to delete objects. Note that kernel commit is not yet mainline, and still in developpment branch. But it can have a huge impact on pyroute2 library
- Loading branch information
Showing
1 changed file
with
22 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters