[Top][All Lists]

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

[lwip-devel] [bug #26134] Insert a dummy u16_t field to prevent alignmen

From: Srinivas Gollakota
Subject: [lwip-devel] [bug #26134] Insert a dummy u16_t field to prevent alignment exceptions
Date: Wed, 15 Apr 2009 20:00:42 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YComp; SV1; GTB5)

Follow-up Comment #5, bug #26134 (project lwip):

Yes. ETH_PAD_SIZE is much flexible.It just got overlooked in the migration.
It's good enough for eth_hdr.

With etharp_hdr there will be an issue for us. The crux of the issue is
certain architectures word accesses has to be aligned to 4 byte boundary. In
the arp header source ip address will be starting at non-aligned (4byte)

Are there any other ports that has similar changes with regards to alignment?
Neverthless if no one has similar requirements please close this out. we will
work out a way with a seperate copy or use byte accesses instead of word

By the way is there any reason for ETHARP_HWADDR_LEN macro configurable? I'm
curious as this may be already used for extra padding.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]