RE: [Hash function Ipv4]

2012-06-04 Thread enrico d'urso
Hi, I did some tests with some subnets Ip /24 and I will share the results. I got very good results with this configuration: Hash table's size: Let x be the number of ip. Y = x*2, then size_table = 'The power of 2 closest to Y, and greater than or equal to Y'. Hash Function: return

[Hash function Ipv4]

2012-06-02 Thread enrico d'urso
Hi, I'm looking for an Hash function for Ipv4 addresses. What are good ones? Bye Enrico ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe,

[Kevent]

2012-05-25 Thread enrico d'urso
Hi, I'm Italian , so sorry for my bad English. I would understand something about Kevent function. Please, look this code: nev = kevent( kqueue_descr, events_list, how_many_targets,events_trig, how_many_targets,tmout); When kevent returns and nev is 0, nev is equal to ready descriptor and to