Pawel Jakub Dawidek pjd at FreeBSD.org
Tue May 18 02:24:43 PDT 2004


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.

IP		netmask		ia_broadaddr	ia_netbroadcast

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
pjd at FreeBSD.org                           http://garage.freebsd.pl
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20040518/26257630/attachment.bin

More information about the freebsd-net mailing list