Hi Danny,

Can you also check IP_HDRINCL, it was in my list of defines.

Johnny

> The file ws2tcpip.h contains these macros, along with a bunch of
> comments. Inside some of the comments are "old value" notes, e.g. :
> #define IP_TOS                  3   /* old (winsock 1.1) value 8 */
> #define IP_TTL                  4   /* old value 7 */
> 
> These old values match what you seem to require.
> 
> The web page
> http://www.pocketpcjunkies.com/Uwe/Forum.aspx/wince-vc/5250/PRB-Is-
> Winsock2
> 
> talks about CE but also about x86.
> 
> So either these are CE-specific values, or they're CE on X86 specific.
> I've never seen the latter, so I'll change our ws2tcpip.h file to
> define
> those macros to their old values if on CE.
> 
> If someone thinks this is wrong, please yell :-)
> 
>       Danny
> 
> On Fri, 2009-05-22 at 12:25 +0200, Johnny Willemsen wrote:
> > 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
> >
> --
> Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info


------------------------------------------------------------------------------
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

Reply via email to