diff options
author | Jozsef Kadlecsik <kadlec@netfilter.org> | 2020-09-20 13:06:59 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@netfilter.org> | 2020-09-20 13:09:41 +0200 |
commit | 3d5ffca9db521d5bd8868760ee1c5263e0d25c1d (patch) | |
tree | 41bcd23dc0dbd9d7a0c42e8a1f8085e8c13ee53f /lib/mnl.c | |
parent | 514bd1d1234ce9bab49244cf638dff8c894940a1 (diff) |
Support the -exist flag with the destroy command
The -exist flag was supported with the create, add and delete commands.
In order to gracefully handle the destroy command with nonexistent sets,
the -exist flag is added to destroy too.
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
Diffstat (limited to 'lib/mnl.c')
-rw-r--r-- | lib/mnl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -34,7 +34,7 @@ struct ipset_handle { static const uint16_t cmdflags[] = { [IPSET_CMD_CREATE-1] = NLM_F_REQUEST|NLM_F_ACK| NLM_F_CREATE|NLM_F_EXCL, - [IPSET_CMD_DESTROY-1] = NLM_F_REQUEST|NLM_F_ACK, + [IPSET_CMD_DESTROY-1] = NLM_F_REQUEST|NLM_F_ACK|NLM_F_EXCL, [IPSET_CMD_FLUSH-1] = NLM_F_REQUEST|NLM_F_ACK, [IPSET_CMD_RENAME-1] = NLM_F_REQUEST|NLM_F_ACK, [IPSET_CMD_SWAP-1] = NLM_F_REQUEST|NLM_F_ACK, |