Hi, Some of our IP tests did fail and after debugging for some time I found that setting some IP options didn't work as expected. I made the following code to check the correct defines for the IP_* values based on the winsock.h and ws2tcpip.h files, there were some differences between these two and used the differences to start some tests. The following code does compile with MSVC but not with CEGCC, can someone have a look.
I used a loop to check for the right values for (int i =0; i < 100; i++) if (i == IP_HDRINCL) printf ("IP_HDRINCL == %d", i); Johnny #if (IP_ADD_MEMBERSHIP != 5) #error incorrect value IP_ADD_MEMBERSHIP #endif #if (IP_TOS != 8) #error incorrect value IP_TOS #endif #if (IP_TTL != 7) #error incorrect value IP_TTL #endif #if (IP_ADD_MEMBERSHIP != 5) #error incorrect value IP_ADD_MEMBERSHIP #endif #if (IP_MULTICAST_IF != 2) #error incorrect value IP_MULTICAST_IF #endif #if (IP_MULTICAST_TTL != 3) #error incorrect value IP_MULTICAST_TTL #endif #if (IP_MULTICAST_LOOP != 4) #error incorrect value IP_MULTICAST_LOOP #endif #if (IP_DROP_MEMBERSHIP != 6) #error incorrect value IP_DROP_MEMBERSHIP #endif #if (IP_HDRINCL != 9) #error incorrect value IP_HDRINCL #endif ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://www.creativitycat.com _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel