Networking Forums

Networking Forums > Computer Networking > Linux Networking > RAW socket when sendto() always return -1(ENOBUFS) ???????

Reply
Thread Tools Display Modes

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

 
 
hzcl
Guest
Posts: n/a

 
      08-15-2003, 09:07 AM
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

why?

I call like this:

struct sockaddr_ll sl;
memset(&sl,0,sizeof(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));
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unix domain socket: can't test for blocking before sendto Poluekt Linux Networking 2 11-22-2010 07:27 PM
sendto() and structures ericunfuk Linux Networking 1 03-24-2007 12:22 PM
linux improper 0 return from read on blocking unix domain socket tx_scott_stevens@yahoo.com Linux Networking 0 11-18-2005 10:11 PM
Help with sendto() B.r.K.o.N.j.A. Linux Networking 0 12-11-2003 09:07 PM
IP binding before sendto() Vinod Kumar P Linux Networking 0 10-30-2003 02:04 PM



1 2 3 4 5 6 7 8 9 10 11