I'm currently writing a script pulling data from /proc/net/tcp
and /proc/net/udp
and I need to translate the connection states from their hex code into something meaningful.
Example content:
sl local_address rem_address st tx_queue rx_queue tr tm->when retrnsmt uid timeout inode ref pointer drops
37: 00000000:2710 00000000:0000 07 00000000:00000000 00:00000000 00000000 0 0 862948 2 ffff8800109dbac0 0
54: 00000000:00A1 00000000:0000 07 00000000:00000000 00:00000000 00000000 0 0 2055110 2 ffff8800109db780 0
So far I've turned up this answer which pointed me to the relevant kernel header file, but there is not a matching udp_states.h
or anything in udp.h
or ip.h
.
Where can I find a list of connection states for UDP sockets?