How I can see from shell what socket options are set? In particular I\'m interesting to know if SO_BROADCAST is set?
On Linux, you can use the knetstat kernel module to inspect socket options, including SO_BROADCAST.
SO_BROADCAST