On Tue, May 18, 2004 at 11:24:39AM +0200, Pawel Jakub Dawidek wrote:
> Hi.
> 
> Do we still need ia_netboradcast field? It is calculated depending on
> old-fashion classes (A, B, C). Is it used still?
> I wonder if ia_broadaddr isn't sufficient today.

not just that, it seems that ia_netboradcast contains bogus info.
This said, how do you plan to handle the alias search, by
implementing a per-interface hash table containing the
addresses and broadcast addresses ?

        cheers
        luigi

> IP            netmask         ia_broadaddr    ia_netbroadcast
> 10.0.0.101    255.0.0.0       10.255.255.255  10.255.255.255
> 1.0.0.2               255.255.255.252 1.0.0.3         1.255.255.255
> 2.0.0.1               255.255.0.0     2.0.255.255     2.255.255.255
> 
> I'm planing to work on removing O(n) from interface aliases search.
> Now every incoming packet have to be compared with every single
> broadcast from every single alias. When I tested something and
> there were ~10000 aliases on interface it worked really slow.
> 
> This slowdown probably exists in more places. It exists in NetBSD and
> OpenBSD as well.
> 
> -- 
> Pawel Jakub Dawidek                       http://www.FreeBSD.org
> [EMAIL PROTECTED]                           http://garage.freebsd.pl
> FreeBSD committer                         Am I Evil? Yes, I Am!


_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to