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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content