diff options
author | Dmitry V. Levin <ldv@strace.io> | 2023-02-11 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2023-02-11 08:00:00 +0000 |
commit | 8736bba05b756e5a86e7eba5ae551c10f863e50c (patch) | |
tree | 800c70b8e155c0be0dca18f28846c2102e9631f4 | |
parent | f2cea9657b862343b4fb38802521838db7129ec7 (diff) | |
download | strace-8736bba05b756e5a86e7eba5ae551c10f863e50c.tar.gz |
xlat: update NTF_EXT_* constants
* src/xlat/neighbor_cache_entry_ext_flags.in (NTF_EXT_LOCKED): New
constant introduced by Linux kernel commit v6.2-rc1~99^2~297^2~1.
* tests/nlattr_ndmsg.c (main): Update expected output.
* NEWS: Mention this change.
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | src/xlat/neighbor_cache_entry_ext_flags.in | 1 | ||||
-rw-r--r-- | tests/nlattr_ndmsg.c | 6 |
3 files changed, 6 insertions, 3 deletions
@@ -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_*, - and MEMBARRIER_* constants. + MEMBARRIER_*, 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/xlat/neighbor_cache_entry_ext_flags.in b/src/xlat/neighbor_cache_entry_ext_flags.in index fcc9f8176..5bd14b344 100644 --- a/src/xlat/neighbor_cache_entry_ext_flags.in +++ b/src/xlat/neighbor_cache_entry_ext_flags.in @@ -1 +1,2 @@ NTF_EXT_MANAGED (1 << 0) +NTF_EXT_LOCKED (1 << 1) diff --git a/tests/nlattr_ndmsg.c b/tests/nlattr_ndmsg.c index f945b1418..59fb1c1ec 100644 --- a/tests/nlattr_ndmsg.c +++ b/tests/nlattr_ndmsg.c @@ -186,8 +186,10 @@ main(void) static const struct strval32 ntfe_flags[] = { { ARG_STR(0) }, { ARG_XLAT_KNOWN(0x1, "NTF_EXT_MANAGED") }, - { ARG_XLAT_KNOWN(0xdeadbeef, "NTF_EXT_MANAGED|0xdeadbeee") }, - { ARG_XLAT_UNKNOWN(0xfeedcafe, "NTF_EXT_???") }, + { ARG_XLAT_KNOWN(0x2, "NTF_EXT_LOCKED") }, + { ARG_XLAT_KNOWN(0xdeadbeef, "NTF_EXT_MANAGED|NTF_EXT_LOCKED" + "|0xdeadbeec") }, + { ARG_XLAT_UNKNOWN(0xfeedcafc, "NTF_EXT_???") }, }; for (size_t i = 0; i < ARRAY_SIZE(ntfe_flags); i++) { |