ss reports udp sockets as tcp
Issue
- ss reports udp sockets as tcp
Sample output of ss:
# netstat -aup | egrep "^Proto|55204"
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
udp 0 0 0.0.0.0:55204 0.0.0.0:* 411/rpc.statd
# ss -an | egrep "^Netid|55204"
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port
tcp UNCONN 0 0 *:55204 *:*
#
NetId column from ss output looks tcp even if the port is udp.
Environment
- Red Hat Enterprise Linux 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.