Forum Discussion
Altera_Forum
Honored Contributor
16 years agoWhich version of Quartus are you using? In 8.0 there was a bug in the IP4_ADDR macro in network_utilites.c. It should have an extra pair of brackets, and should look like this:
#define IP4_ADDR(ipaddr, a,b,c,d) ipaddr =
htonl((((alt_u32)(a & 0xff) << 24) | ((alt_u32)(b & 0xff) << 16) |
((alt_u32)(c & 0xff) << 8) | (alt_u32)(d & 0xff)))