lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Problem With dns.c Using 32-Bit Compilers


From: Jonathan Larmour
Subject: Re: [lwip-users] Problem With dns.c Using 32-Bit Compilers
Date: Wed, 27 Aug 2008 19:28:45 +0100
User-agent: Thunderbird 1.5.0.12 (X11/20070530)

address@hidden wrote:
> Jonathan Larmour wrote:
>>
>> One workaround may be to dispense with the uses of sizeof for those DNS
>> records in that file, and replace them with e.g.
>> #define SIZEOF_DNS_ANSWER 10
>> and use that instead. The format and size is fixed after all.
>>
>>   
> Wouldn't that be working around a bug in a compiler (that doesn't
> support structure packing) which we agreed not to do?

>From what he said, it does support structure packing, but still includes
padding for alignment at the end.

I agree that no structure packing at all would not be worth attempting to
support.

Jifl
-- 
eCosCentric Limited      http://www.eCosCentric.com/     The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK.       Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["Si fractum non sit, noli id reficere"]------       Opinions==mine




reply via email to

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