summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2022-10-09 08:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2022-10-09 08:00:00 +0000
commit4c171bced8ddec0a091391d82adb826399ce1a1c (patch)
treef3d2afda45336fd7c83cfd46c2c9ee7ad53a2d44
parent7aa2a268fe91d5f2c0e692373e83dc735f20cb11 (diff)
downloadstrace-4c171bced8ddec0a091391d82adb826399ce1a1c.tar.gz
xlat: update NDTPA_* constants
* src/xlat/rtnl_neightbl_parms_attrs.in (NDTPA_INTERVAL_PROBE_TIME_MS): New constant introduced by Linux kernel commit v6.0-rc1~141^2~249^2. * src/rtnl_neightbl.c (ndt_parms_nla_decoders): Decode NDTPA_INTERVAL_PROBE_TIME_MS. * NEWS: Mention this change.
-rw-r--r--NEWS3
-rw-r--r--src/rtnl_neightbl.c3
-rw-r--r--src/xlat/rtnl_neightbl_parms_attrs.in1
3 files changed, 5 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index eef2e1e1f..f2a4086cd 100644
--- a/NEWS
+++ b/NEWS
@@ -4,7 +4,8 @@ Noteworthy changes in release ?.?? (????-??-??)
* Improvements
* Enhanced decoding of PTP_* ioctl commands.
* Updated decoding of setns syscall.
- * Updated lists of BPF_*, BTRFS_*, FAN_*, ETH_P_*, KVM_*, and NT_* constants.
+ * Updated lists of BPF_*, BTRFS_*, FAN_*, ETH_P_*, KVM_*, NDTPA_*,
+ and NT_* constants.
* Bug fixes
diff --git a/src/rtnl_neightbl.c b/src/rtnl_neightbl.c
index 2c88a4c36..1035312d8 100644
--- a/src/rtnl_neightbl.c
+++ b/src/rtnl_neightbl.c
@@ -69,7 +69,8 @@ static const nla_decoder_t ndt_parms_nla_decoders[] = {
[NDTPA_LOCKTIME] = decode_nla_u64,
[NDTPA_QUEUE_LENBYTES] = decode_nla_u32,
[NDTPA_MCAST_REPROBES] = decode_nla_u32,
- [NDTPA_PAD] = NULL
+ [NDTPA_PAD] = NULL,
+ [NDTPA_INTERVAL_PROBE_TIME_MS] = decode_nla_u64,
};
static bool
diff --git a/src/xlat/rtnl_neightbl_parms_attrs.in b/src/xlat/rtnl_neightbl_parms_attrs.in
index 47f4adea1..91342546d 100644
--- a/src/xlat/rtnl_neightbl_parms_attrs.in
+++ b/src/xlat/rtnl_neightbl_parms_attrs.in
@@ -18,3 +18,4 @@ NDTPA_LOCKTIME 15
NDTPA_QUEUE_LENBYTES 16
NDTPA_MCAST_REPROBES 17
NDTPA_PAD 18
+NDTPA_INTERVAL_PROBE_TIME_MS 19