summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2023-04-18 08:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2023-04-28 08:00:00 +0000
commit8158d448c0e799b01a17e307cf013af7e0eb6f3a (patch)
tree0ec49d5292e8f18c74885a7fc56ef582c36d979e
parent2f58417a44d7fcf14e9803e9d0f19955e54ba853 (diff)
downloadstrace-8158d448c0e799b01a17e307cf013af7e0eb6f3a.tar.gz
xlat: update IFLA_* constants
* src/xlat/rtnl_link_attrs.in (IFLA_GSO_IPV4_MAX_SIZE, IFLA_GRO_IPV4_MAX_SIZE): New constants introduced by Linux kernel commit v6.3-rc1~162^2~162^2~1. * src/rtnl_link.c (ifinfomsg_nla_decoders): Add IFLA_GSO_IPV4_MAX_SIZE and IFLA_GRO_IPV4_MAX_SIZE. * NEWS: Mention this.
-rw-r--r--NEWS4
-rw-r--r--src/rtnl_link.c2
-rw-r--r--src/xlat/rtnl_link_attrs.in2
3 files changed, 7 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index fde1fe525..0e9eb2aa1 100644
--- a/NEWS
+++ b/NEWS
@@ -6,7 +6,9 @@ Noteworthy changes in release ?.? (????-??-??)
that operate on the specified set of file descriptors.
* Implemented -l/--syscall-limit option to automatically detach tracees
after capturing the specified number of syscalls.
- * Updated lists of F_SEAL_* constants.
+ * Implemented decoding of IFLA_GSO_IPV4_MAX_SIZE and IFLA_GRO_IPV4_MAX_SIZE
+ netlink attributes.
+ * Updated lists of F_SEAL_* and IFLA_* constants.
* Updated lists of ioctl commands from Linux 6.3.
Noteworthy changes in release 6.2 (2023-02-26)
diff --git a/src/rtnl_link.c b/src/rtnl_link.c
index 3a2c320e0..666226afd 100644
--- a/src/rtnl_link.c
+++ b/src/rtnl_link.c
@@ -1690,6 +1690,8 @@ static const nla_decoder_t ifinfomsg_nla_decoders[] = {
[IFLA_TSO_MAX_SEGS] = decode_nla_u32,
[IFLA_ALLMULTI] = decode_nla_u32,
[IFLA_DEVLINK_PORT] = decode_nla_u32,
+ [IFLA_GSO_IPV4_MAX_SIZE] = decode_nla_u32,
+ [IFLA_GRO_IPV4_MAX_SIZE] = decode_nla_u32,
};
DECL_NETLINK_ROUTE_DECODER(decode_ifinfomsg)
diff --git a/src/xlat/rtnl_link_attrs.in b/src/xlat/rtnl_link_attrs.in
index 3d2112c7e..29f740f62 100644
--- a/src/xlat/rtnl_link_attrs.in
+++ b/src/xlat/rtnl_link_attrs.in
@@ -63,3 +63,5 @@ IFLA_TSO_MAX_SIZE
IFLA_TSO_MAX_SEGS
IFLA_ALLMULTI
IFLA_DEVLINK_PORT
+IFLA_GSO_IPV4_MAX_SIZE
+IFLA_GRO_IPV4_MAX_SIZE