summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2023-02-12 08:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2023-02-12 08:00:00 +0000
commit8b6e7f72c911b50973a66bd6eae0be9a3987fd3a (patch)
treea8afdb0b4993db711decd7c03107990e0b2813a3
parent8736bba05b756e5a86e7eba5ae551c10f863e50c (diff)
downloadstrace-8b6e7f72c911b50973a66bd6eae0be9a3987fd3a.tar.gz
xlat: update NFT_MSG_* constants
* src/xlat/nf_nftables_msg_types.in (NFT_MSG_GETRULE_RESET): New constant introduced by Linux kernel commit v6.2-rc1~99^2~210^2~2. * src/netlink.c (decode_nlmsg_flags_netfilter) Handle it. * NEWS: Mention this change.
-rw-r--r--NEWS2
-rw-r--r--src/netlink.c1
-rw-r--r--src/xlat/nf_nftables_msg_types.in1
3 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 620a6f4bb..5b71d60fb 100644
--- a/NEWS
+++ b/NEWS
@@ -5,7 +5,7 @@ Noteworthy changes in release ?.? (????-??-??)
* Implemented decoding of IFLA_BRPORT_MAB and IFLA_DEVLINK_PORT
netlink attributes.
* Updated lists of ALG_*, BPF_*, IFLA_*, KEY_*, KVM_*, LANDLOCK_*,
- MEMBARRIER_*, and NTF_* constants.
+ MEMBARRIER_*, NFT_*, and NTF_* constants.
* Updated lists of ioctl commands from Linux 6.2.
Noteworthy changes in release 6.1 (2022-12-12)
diff --git a/src/netlink.c b/src/netlink.c
index 7f56fa3aa..b599d49b7 100644
--- a/src/netlink.c
+++ b/src/netlink.c
@@ -349,6 +349,7 @@ decode_nlmsg_flags_netfilter(const uint16_t type)
case NFT_MSG_GETOBJ:
case NFT_MSG_GETOBJ_RESET:
case NFT_MSG_GETFLOWTABLE:
+ case NFT_MSG_GETRULE_RESET:
return netlink_get_flags;
case NFT_MSG_DELTABLE:
case NFT_MSG_DELCHAIN:
diff --git a/src/xlat/nf_nftables_msg_types.in b/src/xlat/nf_nftables_msg_types.in
index 9c0f0ed69..3d2f2ff3b 100644
--- a/src/xlat/nf_nftables_msg_types.in
+++ b/src/xlat/nf_nftables_msg_types.in
@@ -25,3 +25,4 @@ NFT_MSG_GETOBJ_RESET
NFT_MSG_NEWFLOWTABLE
NFT_MSG_GETFLOWTABLE
NFT_MSG_DELFLOWTABLE
+NFT_MSG_GETRULE_RESET