Forum Discussion
Altera_Forum
Honored Contributor
21 years agoHTTP server demo not accepting connections
I've been trying the HTTP server demo, and haven't had any luck getting the demo board to accept connections from outside. I built it according to the directions in kits/nios2/component...
Altera_Forum
Honored Contributor
21 years agoI may be able to hold out some hope to you. There was a posting recently on the eCos mailing list which describes something that sounds very like the problem you are describing: http://www.spinics.net/lists/ecos/msg27032.html (http://www.spinics.net/lists/ecos/msg27032.html)
Following this, it seems that a fix is to change the definition of sockaddr_inarp in packages\net\bsd_tcpip\current\include\netinet to:struct sockaddr_inarp {
u_char sin_len;
u_char sin_family;
u_short sin_port;
struct in_addr sin_addr;
struct in_addr sin_srcaddr;
u_short sin_tos;
u_short sin_other;
u_char pad;# define SIN_PROXY 1
}; i.e. add 14 bytes of padding to the end. Hope that helps!