Re: Setsockopt() api in 2.6 implementation

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

 



On 9/12/06, vladimir.moltchanov@xxxxxxxxx <vladimir.moltchanov@xxxxxxxxx> wrote:
Hi all,

Can anybody provide an example of basic steps required under DCCP for
Linux 2.6 implementation to create a simple listening socket?

I have:

        Sk = socket(AF_INET, SOCK_DCCP, 0);
        ...
        ...
        Bind();
        ...
        ...
        Int Buf_len=1400;
        Error = setsockopt(sk, SOL_DCCP, DCCP_SOCKOPT_PACKET_SIZE,
&Buf_len, sizeof(Buf_len));

Setsockopt() fails with code 92 - (not supported, I believe).
Apparently, I never reach dccp setsockopt() implementation. So, what am
I missing?

B.R.
Vladimir.


I think you are missing using the service code. This question is best
directed at dccp@xxxxxxxxxxxxxxx as it is Linux specific.

Also look at http://linux-net.osdl.org

If this doesn't make sense send me an e-mail and I'll send you some
sample code I have.

Ian
--
Ian McDonald
Web: http://wand.net.nz/~iam4
Blog: http://imcdnzl.blogspot.com
WAND Network Research Group
Department of Computer Science
University of Waikato
New Zealand


[Index of Archives]     [Linux Kernel Development]     [Linux DCCP]     [IETF Annouce]     [Linux Networking]     [Git]     [Security]     [Linux Assembly]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [DDR & Rambus]

  Powered by Linux