Forum Discussion
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));