NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Debugging socket options



I have a program (no source) that issues an error when setsockopt() is called.   Here is what I think are the relevant bits from a ktrace:

 18808  18808 guppy_basecaller CALL  socketpair(1,5,0,0x7f7fffffdb98)
 18808  18808 guppy_basecaller RET   socketpair 0
 18808  18808 guppy_basecaller CALL  setsockopt(3,1,0x10,0x7f7fffffda14,4)
 18808  18808 guppy_basecaller RET   setsockopt -1 errno -22 Invalid argument

I do not know how to track down the meaning of the arguments and which parts are invalid, especially because the arguments to setsockopt() are protocol level dependent, and I’m not sure how to track down what the 3 corresponds to in the source code so as to find out what the rest, e.g., 1, 0x10, etc. are intended to mean.

I would appreciate pointers.

Thanks a lot.

Cheers,
Brook



Home | Main Index | Thread Index | Old Index