ss reports udp sockets as tcp

Solution Unverified - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In