lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #5952] Integration of AutoIP module


From: Frédéric Bernon
Subject: [lwip-devel] [patch #5952] Integration of AutoIP module
Date: Tue, 19 Jun 2007 10:07:53 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4

Follow-up Comment #24, patch #5952 (project lwip):

>Looks fine to me. Except for the 'magic number' passed to srand... But that
shouldn't happen too often, anyway. 

In my case, each time I use srand, I call it like this:

srand(time(NULL)); 

But we can't be sure that time is implemented. So, the magic number is not so
bad as workaround...

>Anyway, the need for rand/srand is very unsatisfying to me. Isn't there
another possibility?

We could use an iteration inside the range 169.254.1.0 to 169.254.254.255,
but it could cause lot of ARP conflict. The idea is to get some random to
avoid that all devices try the same address. For information, why don't you
like rand/srand?



    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?5952>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

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