RAW socket when sendto() always return -1(ENOBUFS) ???????

Discussion in 'Linux Networking' started by hzcl, Aug 15, 2003.

  1. hzcl

    hzcl Guest

    I create a raw packet socket and bind

    it to a isdn device. It seems ok.

    but I call sendto() but always return -1

    the errno is 105 means no buffer space available


    I call like this:

    struct sockaddr_ll sl;
    sl.sll_family = AF_PACKET;
    //other member of sl is not needed because
    //it is a raw packet socket
    sendto(s,buf,len,0,(struct sockaddr*)sl,sizeof(sl));
    hzcl, Aug 15, 2003
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.