Skip to contentSkip to conversation

Get Current CCID

DISCUSSION Gerrit Renker 1 participant 1 message Feb 6, 2009

lore
Share & tools
lore
#0 lore raw

Sorry for the delay which was caused by illness.

| Gerrit,
|    consider this:
|      getsockopt (so, SOL_DCCP, DCCP_SOCKOPT_RX_CCID, &ccid, &ccidlen);
| 
|    Is there any reason for getsockopt is returning 255? This is
| happening with me using 2.6.29-rc2 (your test tree)
| 

Sorry this is not enough information to say whether the result is really what can be expected. First
* where is the 255 returned ? -- is that the return value of getsocktopt() or do you mean the value returned in 'ccid'?
* what type is 'ccid' ? -- from Documentation/networking/dccp.txt, it should be 'int', not an array of uint8_t;
* analogous -- what is ccidlen?
* last - the 'so' argument has to be a connected socket -- I don't know whether you tried the getsockopt on a listening socket, where naturally the value of the CCID(s) is undefined.