Skip to content

Commit

Permalink
update(userspace/libsinsp): export 'fd' field in fdtables
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Dellaluce <[email protected]>
  • Loading branch information
jasondellaluce authored and poiana committed Jun 14, 2024
1 parent 2e87187 commit fa28969
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions userspace/libsinsp/fdinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ libsinsp::state::static_struct::field_infos sinsp_fdinfo::static_fields() const
define_static_field(ret, this, m_mount_id, "mount_id");
define_static_field(ret, this, m_ino, "ino");
define_static_field(ret, this, m_pid, "pid");
define_static_field(ret, this, m_fd, "fd");

// in this case we have a union, so many of the following exposed fields
// will point to the same memory areas, but this should not be an issue
Expand All @@ -176,6 +177,7 @@ libsinsp::state::static_struct::field_infos sinsp_fdinfo::static_fields() const
define_static_field(ret, this, m_sockinfo.m_ipv6serverinfo.m_l4proto, "socket_ipv6_server_l4_proto");
define_static_field(ret, this, m_sockinfo.m_unixinfo.m_fields.m_source, "socket_unix_src");
define_static_field(ret, this, m_sockinfo.m_unixinfo.m_fields.m_dest, "socket_unix_dest");

return ret;
}

Expand Down

0 comments on commit fa28969

Please sign in to comment.