dscp-pid-fd a tool that shows you some sockopts for a given pid and file descriptor number. (Use netstat -a -n -e -p and ls -alh /proc/PID_HERE/fd/ to figure out which fd is the socket).