udhcpc alignment problem

Dirk Clemens develop at cle-mens.de
Fri Jan 19 15:29:50 PST 2007


Denis Vlasenko wrote:

>> Just a minor detail, but wouldn't it be better to use
>> sizeof server_addr rather than 4?
>
> Hmm, I'm pretty sure that ipv4 address is a 4 byte value.
That's correct,
> It's other way around: sizeof server_addr _must_ be 4.
but that isn't always correct.
example: machines with CHAR_BIT == 16.

Dirk



More information about the busybox mailing list