aboutsummaryrefslogtreecommitdiff
path: root/nlattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'nlattr.c')
-rw-r--r--nlattr.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/nlattr.c b/nlattr.c
index 6f35b994..ac430f4f 100644
--- a/nlattr.c
+++ b/nlattr.c
@@ -208,6 +208,22 @@ decode_nla_meminfo(struct tcb *const tcp,
}
bool
+decode_nla_fd(struct tcb *const tcp,
+ const kernel_ulong_t addr,
+ const unsigned int len,
+ const void *const opaque_data)
+{
+ int fd;
+
+ if (len < sizeof(fd))
+ return false;
+ else if (!umove_or_printaddr(tcp, addr, &fd))
+ printfd(tcp, fd);
+
+ return true;
+}
+
+bool
decode_nla_ifindex(struct tcb *const tcp,
const kernel_ulong_t addr,
const unsigned int len,