Bug 255460 - sockstat shows foreign addresses of connected sockets as *
Summary: sockstat shows foreign addresses of connected sockets as *
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 13.0-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-28 12:36 UTC by rashey
Modified: 2021-04-28 12:36 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rashey 2021-04-28 12:36:29 UTC
sockstat shows foreign addresses of connected sockets as * if first part of IPv4 address is from range 192 to 255 and last part is 0, e.g. 216.239.35.0.

# sockstat -4c -p 123
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS     FOREIGN ADDRESS
_ntp     ntpd       27491 15 udp4   192.168.0.2:9305  *:123

# pfctl -ss | grep '192.168.0.2:9305'
re0 udp 192.168.0.2:9305 -> 216.239.35.0:123       MULTIPLE:MULTIPLE

# freebsd-version
13.0-RELEASE