lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Struct packing/alignment problems


From: Leon Woestenberg
Subject: Re: [lwip-users] Struct packing/alignment problems
Date: Thu, 29 Apr 2004 01:52:05 +0200
User-agent: Mozilla Thunderbird 0.5 (Windows/20040207)

Hello,

Mountifield, Tony wrote:
OK, I have made a formal patch for this

etharp.c has this piece of code where the address of
the source IP address in the ARP header is passed
to the DHCP client:

if (for_us) dhcp_arp_reply(netif, &hdr->sipaddr);

The DHCP client will probably crash as it is not
fixed for the 32-bit case yet, in case this address
is not 32-bit aligned.

I would rather work with a local fix in etharp.c here
by a temporary variable solution instead of having the
fix spread over the lwIP code.

Regards,

Leon.




reply via email to

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