Forum Discussion
Altera_Forum
Honored Contributor
14 years agoSlow UDP receiving with inichestack
Hi, everyone. I got a problem here with my udp packet receiving. I use TSE as the MAC driver and inichestack TCP/IP, running on the Altera Cyclone 3 C120, I noticed that there is a signifi...
Altera_Forum
Honored Contributor
14 years agoHello gecko,
below instruction again generate the same error "no free buffer for rx"...i am using UDP packet size 512 bytes 1) change the buffer size in ipport.h # define NUMBIGBUFS 600# define NUMLILBUFS 300 /* some maximum packet buffer numbers */# define MAXBIGPKTS 600# define MAXLILPKTS 300# define MAXPACKETS (MAXLILPKTS+MAXBIGPKTS) 2) reset the receiving buffer size (the default size is only 1 K or so) int nRecvBuf=32*1024; setsockopt(s_UdpSock, SOL_SOCKET, SO_RCVBUF,(const char*)&nRecvBuf,sizeof(int));