[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] byte alignment problems



Hi Kevin,

kbb@xxxxxxxxxxxxxxxx wrote:
has anyone seen/fixed byte alignment problems using EDK 9.1 with all
service packs?

In the file ip_input.c around line 425:

if (iph->ihl < 5 || iph->version != 4)
      goto

the code always parses the ihl as '8' and the version as '0'.

It works great in EDK 8.2

Which kernel are you building - 2.6 or 2.4?

The reason I ask is that we've been forced to add __attribute__((packed)) on a bunch of the IP header structs in linux-2.6.x/include/linux/ip.h. I haven't spent long enough to see if this is a EDK (and thus GCC) version related issue, or what.

But, might be a lead for whatever bug you're trying to track down as well.

Regards,

John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/