Re: Make ip.h and tcp.h work under -fnative-struct or -fms-bitfields

2002-10-28 Thread Wu Yongwei
Oops, what kind of problem can occur? I did not think of that. But I suppose u_char is symmetric with other definitions, and it always works for me under GCC or MSVC (while __attribute__((packed)) works only for GCC). Best regards, Wu Yongwei --- Original Message from Danny Smith --- --- Wu

Re: Make ip.h and tcp.h work under -fnative-struct or -fms-bitfields

2002-10-28 Thread Danny Smith
--- Wu Yongwei <[EMAIL PROTECTED]> wrote: > These header files use "u_int xxx:4, yyy:4", which in the MS convetion > will generate 4-byte instead of 1-byte bit fields. > > ChangeLog: > > 2002-10-28 Wu Yongwei <[EMAIL PROTECTED]> > > * ip.h (struct ip): Use u_char to indicate bitfields to