-
Notifications
You must be signed in to change notification settings - Fork 122
Description
Is your feature request related to a problem? Please describe.
TCP results will say whether the connection is ESTABLISHED, LISTEN, etc. UDP will not. At first glance, I thought there was a bug with lsof. After careful inspection, I realized its probably just a display discrepancy.
Describe the solution you'd like
UDP results need to mimic how TCP results are displayed as far as connection status.
Describe alternatives you've considered
Use netstat instead of lsof
Additional context
lsof TCP example:
command: lsof -nPi | grep TCP
results:
httpd 54175 user1234 9u IPv6 34820 0t0 TCP *:443 (LISTEN)
httpd 54175 user1234 21u IPv6 22049696 0t0 TCP 127.0.0.1:443->127.0.0.1:55212 (ESTABLISHED)
lsof UDP example:
command: lsof -nPi | grep UDP
results: NetworkMa 734 user1234 25u IPv4 20544929 0t0 UDP 10.0.2.15:68->10.0.2.2:67
netstat UDP example:
command: netstat -an | grep udp
results: udp 0 0 10.0.2.15:68 10.0.2.2:67 ESTABLISHED