summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Syromyatnikov <evgsyr@gmail.com>2021-12-17 23:25:41 +0100
committerEugene Syromyatnikov <evgsyr@gmail.com>2021-12-20 12:52:15 +0100
commitcff515e0c946214c9adf45920ac6d4e4abb4ed34 (patch)
tree70013eee2e7f229c59dc84b50ebc5e84ae3fd01a
parent2264f67169f89357901510dad5ecb30f52c4ff91 (diff)
downloadstrace-cff515e0c946214c9adf45920ac6d4e4abb4ed34.tar.gz
net: implement SOL_MCTP socket option names decoding
-rw-r--r--src/net.c4
-rw-r--r--src/xlat/sock_mctp_options.in1
-rw-r--r--src/xlat/socketlayers.in1
3 files changed, 6 insertions, 0 deletions
diff --git a/src/net.c b/src/net.c
index 3f2ca842b..2e69f89a9 100644
--- a/src/net.c
+++ b/src/net.c
@@ -534,6 +534,7 @@ SYS_FUNC(socketpair)
#include "xlat/sock_tls_options.h"
#include "xlat/sock_xdp_options.h"
#include "xlat/sock_mptcp_options.h"
+#include "xlat/sock_mctp_options.h"
static void
print_sockopt_fd_level_name(struct tcb *tcp, int fd, unsigned int level,
@@ -650,6 +651,9 @@ print_sockopt_fd_level_name(struct tcb *tcp, int fd, unsigned int level,
case SOL_MPTCP:
printxval(sock_xdp_options, name, "MPTCP_???");
break;
+ case SOL_MCTP:
+ printxval(sock_xdp_options, name, "MCTP_OPT_???");
+ break;
/* Other SOL_* protocol levels still need work. */
diff --git a/src/xlat/sock_mctp_options.in b/src/xlat/sock_mctp_options.in
new file mode 100644
index 000000000..be31c5acd
--- /dev/null
+++ b/src/xlat/sock_mctp_options.in
@@ -0,0 +1 @@
+MCTP_OPT_ADDR_EXT 1
diff --git a/src/xlat/socketlayers.in b/src/xlat/socketlayers.in
index 6fd0ba2ba..ea8486482 100644
--- a/src/xlat/socketlayers.in
+++ b/src/xlat/socketlayers.in
@@ -42,6 +42,7 @@ SOL_KCM 281
SOL_TLS 282
SOL_XDP 283
SOL_MPTCP 284
+SOL_MCTP 285
#if defined __alpha__ || defined __hppa__ || defined __mips__ || defined __sparc__
SOL_SOCKET 0xffff
#endif