File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/stirling/source_connectors/socket_tracer Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -795,9 +795,11 @@ void ConnTracker::IterationPreTick(
795795 return ;
796796 }
797797
798- // If remote_addr is missing, it means the connect/accept was not traced.
799- // Attempt to infer the connection information, to populate remote_addr.
800- if (open_info_.remote_addr .family == SockAddrFamily::kUnspecified && socket_info_mgr != nullptr ) {
798+ // If remote_addr or local_addr is missing, it means the connect/accept was not traced.
799+ // Attempt to infer the connection information, to populate remote_addr and local_addr.
800+ if ((open_info_.remote_addr .family == SockAddrFamily::kUnspecified ||
801+ open_info_.local_addr .family == SockAddrFamily::kUnspecified ) &&
802+ socket_info_mgr != nullptr ) {
801803 InferConnInfo (proc_parser, socket_info_mgr);
802804
803805 // TODO(oazizi): If connection resolves to SockAddr type "Other",
You can’t perform that action at this time.
0 commit comments