dscp-pid-fd

Displays socket info (including dscp) for a socket in a process with a given
PID and file descriptor num.

To find the process socket use the following command to list all open sockets and associate them with processes and inodes:

netstat -a -n -e -p

Next run

ls -alh /proc/PROCESS_FROM_PREVIOUS_STEP_HERE/fd/

This will give you output similar to the following

0 -> /dev/pts/4
1 -> /dev/pts/4
2 -> /dev/pts/4
4 -> 'socket:[12345]'

The number after the socket is the inode of the socket and using the table you got from netstat you should now know what file descriptor to use

Usage:
	./dscp-pid-fd PID FILE_DESCRIPTOR_NUM

