Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix topports_server chisel and wrong IP family #760

Merged
merged 2 commits into from
Feb 21, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion userspace/libsinsp/fdinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ class SINSP_PUBLIC sinsp_fdinfo
{
return m_sockinfo.m_ipv4info.m_fields.m_dport;
}
else if(m_type == SCAP_FD_IPV4_SOCK)
else if(m_type == SCAP_FD_IPV6_SOCK)
{
return m_sockinfo.m_ipv6info.m_fields.m_dport;
}
Expand Down
4 changes: 2 additions & 2 deletions userspace/sysdig/chisels/topports_server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function on_init()

if print_container then
chisel.exec("table_generator",
"fd.sproto,container.name",
"fd.sport,container.name",
"Srv Port,container.name",
"evt.rawarg.res",
"Bytes",
Expand All @@ -46,7 +46,7 @@ function on_init()
"bytes")
else
chisel.exec("table_generator",
"fd.sproto",
"fd.sport",
"Srv Port",
"evt.rawarg.res",
"Bytes",
Expand Down