On Thu, Dec 09, 1999 at 05:19:48PM +0100, Lee Boon Peng wrote:
> Hi there,
>
> How would I make use of the socket SO_DEBUG option? There seems
> to be no trpt command equivalent to get add the debugging information.
>
> I would be grateful for any pointers. I couldn't get any help
> from the Usenet groups, so I'm turning here for some guru info.
SO_DEBUG enables various unsystematic debugging printks that are output
into the kernel log (readable via dmesg). They may or may not be helpful
in diagnosing anything.
It is only active when the kernel was compiled with SOCK_DEBUGGING.
This is generally true for 2.3 kernels, but not for stable 2.2/2.0 kernels.
You can enable it by enabling the SOCK_DEBUGGING macro in include/net/sock.h
and recompiling. If you want TCP state traces you also need to enable
STATE_TRACE in include/net/tcp.h.
-Andi
--
This is like TV. I don't like TV.
|