summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2023-04-23 08:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2023-04-28 08:00:00 +0000
commit0a629eedd659f60addb87cd4f653c9ccf8e4a5ed (patch)
tree3ac32d540580fd50c1b9abcebd217c179c52092b
parent0919375f95e381e353221b19521e715dda739f98 (diff)
downloadstrace-0a629eedd659f60addb87cd4f653c9ccf8e4a5ed.tar.gz
xlat: update NFT_MSG_* constants
* src/xlat/nf_nftables_msg_types.in (NFT_MSG_DESTROYTABLE, NFT_MSG_DESTROYCHAIN, NFT_MSG_DESTROYRULE, NFT_MSG_DESTROYSET, NFT_MSG_DESTROYSETELEM, NFT_MSG_DESTROYOBJ, NFT_MSG_DESTROYFLOWTABLE): New constants introduced by Linux kernel commit v6.3-rc1~162^2~264^2. * src/netlink.c (decode_nlmsg_flags_netfilter): Handle them. * NEWS: Mention this.
-rw-r--r--NEWS3
-rw-r--r--src/netlink.c7
-rw-r--r--src/xlat/nf_nftables_msg_types.in7
3 files changed, 16 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 98e8c45a7..4fde3a042 100644
--- a/NEWS
+++ b/NEWS
@@ -9,7 +9,8 @@ Noteworthy changes in release ?.? (????-??-??)
* Implemented decoding of IFLA_BRPORT_MCAST_N_GROUPS,
IFLA_BRPORT_MCAST_MAX_GROUPS, IFLA_GSO_IPV4_MAX_SIZE,
and IFLA_GRO_IPV4_MAX_SIZE netlink attributes.
- * Updated lists of F_SEAL_*, IFLA_*, IORING_*, IP_*, and MFD_* constants.
+ * Updated lists of F_SEAL_*, IFLA_*, IORING_*, IP_*, MFD_*, and NFT_*
+ constants.
* Updated lists of ioctl commands from Linux 6.3.
Noteworthy changes in release 6.2 (2023-02-26)
diff --git a/src/netlink.c b/src/netlink.c
index a07ff00bb..e75e90440 100644
--- a/src/netlink.c
+++ b/src/netlink.c
@@ -358,6 +358,13 @@ decode_nlmsg_flags_netfilter(const uint16_t type)
case NFT_MSG_DELSETELEM:
case NFT_MSG_DELOBJ:
case NFT_MSG_DELFLOWTABLE:
+ case NFT_MSG_DESTROYTABLE:
+ case NFT_MSG_DESTROYCHAIN:
+ case NFT_MSG_DESTROYRULE:
+ case NFT_MSG_DESTROYSET:
+ case NFT_MSG_DESTROYSETELEM:
+ case NFT_MSG_DESTROYOBJ:
+ case NFT_MSG_DESTROYFLOWTABLE:
return netlink_delete_flags;
}
break;
diff --git a/src/xlat/nf_nftables_msg_types.in b/src/xlat/nf_nftables_msg_types.in
index 3d2f2ff3b..fcd43c21a 100644
--- a/src/xlat/nf_nftables_msg_types.in
+++ b/src/xlat/nf_nftables_msg_types.in
@@ -26,3 +26,10 @@ NFT_MSG_NEWFLOWTABLE
NFT_MSG_GETFLOWTABLE
NFT_MSG_DELFLOWTABLE
NFT_MSG_GETRULE_RESET
+NFT_MSG_DESTROYTABLE
+NFT_MSG_DESTROYCHAIN
+NFT_MSG_DESTROYRULE
+NFT_MSG_DESTROYSET
+NFT_MSG_DESTROYSETELEM
+NFT_MSG_DESTROYOBJ
+NFT_MSG_DESTROYFLOWTABLE