[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
can not transmit udp packet
- Date: Tue, 15 Apr 2008 21:22:27 +0800
- From: fall4ufeng at gmail.com (朱旭峰)
- Subject: can not transmit udp packet
hi, all:
i am using netdemo example to develop a rhine netcard rtems
driver.
the sniffer can catch tcp packet when i test tcp transmitting,
but when i test udp transmitting the console give
me the folloing information:
RTEMS:Can't send , No buffer space availble.
i used gdb to find what happend, and i found the function called
order is
transmitUd -> sendto -> sendmsg -> rtems_bsdnet_fdToSocket
the program run into
if(( iop -> flags & LIBIO_FLAGS_OPEN) == 0 )
{
errno = EBADF;
return NULL;
}
in the rtems_bsdnet_fdToSocket function , and the iop -> flags
here is 0, so the error happened.
According to this, can anyone give me some advices?
Thanks a lot.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rtems.rtems.org/pipermail/rtems-users/attachments/20080415/26d33914/attachment.html