UDP error
Thomas Rauscher
trauscher at loytec.com
Thu Jul 8 07:13:20 UTC 2004
> -----Original Message-----
> From: Angelo Fraietta [mailto:afraiett at bigpond.net.au]
> Sent: Thursday, July 08, 2004 8:46 AM
> To: RTEMS Users
> Subject: UDP error
>
> I have been sometimes getting an error 105 when sending to
> the udp. The
> function in the library is
>
>
> static bool sendudp(const struct sockaddr *sp, int
> sockfd,int length,
> int count, void *b)
> {
> int rcount;
> if((rcount=sendto(sockfd, b, count, 0, sp, length)) != count)
> {
> printf("sockfd %d count %d rcount %dlength %d errno %d\n",
> sockfd,count,rcount,length, errno);
> return FALSE;
> }
> return TRUE;
> }
>
> I get the return message
> sockfd 3 count 20 recount -1 length 16 errno 105
>
> Does anyone know what errno 105 is?
Error 105 is ENOBUFS. It is returned when mbufs are exhausted
(from quite a lot places in the IP stack) or when the ethernet
sending queue is full (default limit 50).
I think it is one of these two problems.
Regards,
Thomas Rauscher
--
Thomas Rauscher
LOYTEC electronics GmbH
Stolzenthalergasse 24/3
A-1080 Wien
Austria/Europe
trauscher at loytec.com
www.loytec.com
Phone: +43-1-4020805-15
FAX: +43-1-4020805-99
More information about the users
mailing list