lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #27704] autoip starts with wrong address - ntohl


From: Tamas Somogyi
Subject: [lwip-devel] [bug #27704] autoip starts with wrong address - ntohl
Date: Thu, 15 Oct 2009 07:39:27 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.14) Gecko/2009082707 Firefox/3.0.14 (.NET CLR 4.0.20506)

Follow-up Comment #2, bug #27704 (project lwip):

goldsimon# yes, it always returns 169.254.254.169 on little-endian (e.g. our
TI DSP or Windows) platforms, because the wrong (mirrored) part is kept by the
mask "addr = AUTOIP_NET | (addr & 0xffff);"
This also means that having two or more devices on the network, they all
picks up the same address (169.254.254.169) causing IP address conflict! In
this case "addr += netif->autoip->tried_llipaddr;" doesn't help either,
because the wrong part is masked.
And as AUTOIP_NET is defined as a 32-bit number, the compiler will generate
the correct byte representation both on little and big endian platforms, thus
ntohl() to be removed.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?27704>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

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