can not transmit udp packet

朱旭峰 fall4ufeng at gmail.com
Tue Apr 15 13:22:27 UTC 2008


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://lists.rtems.org/pipermail/users/attachments/20080415/26d33914/attachment.html>


More information about the users mailing list