Skip to content

Commit

Permalink
fix topports_server chisel and wrong IP family (#760)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleks-f authored Feb 21, 2017
1 parent a5a89eb commit 686c3ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit 686c3ee

Please sign in to comment.