I need to find the socket options set for a File descriptor.
For example, the accept call returns a FD. I set a number of socket options. Then I need to find if the socket options are actually set for the FD.
P.S: setsockopt is not returning an error, but behavior of fd is not in line with the option. Hence I need to verify this.