Re: [Zcip] embeddable zeroconf/ip code

David Brownell <[email protected]> Mon, 18 Oct 2004 12:47:30 -0700
Newsgroups gmane.network.zeroconf.workers
Message-ID <[email protected]>
On Monday 18 October 2004 12:21 pm, H. Peter Anvin wrote:

> Please use srand48() and lrand48() or mrand48() instead of srandom() 
> and  random().  The former set of functions are well-defined across 
> implementations, whereas the latter can be arbitrarily complex and
> therefore  behave differently.  For this application, I believe it is better
> if everyone uses the *same* PRNG.

That was from the original, FWIW; easy to change.

I don't think "same" PRNG matters anywhere near as much as having
any single machine have a repeatable/reproducible first guess.  Why
should it matter if different PRNGs are used to guess?  Though it would
be nice to be able to use all 48 bits of etheraddr in the seed ... ;)


> The other advice I have is to install an LPF filter so that you don't
> have to worry about *ALL* ARP traffic during normal operation
> (i.e. defence). 

I'd have to find out how to connect them over packet sockets, and
for now I'd rather not invest that time.  However, that's certainly
worth having as a FIXME in the code ... I worry about load-related
scenarios, and not just because they're rare on my net!

Someone with an appropriate network would be in a much better
position to properly test such patches ... :)

- Dave
 


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl