From owner-freebsd-net@FreeBSD.ORG Tue May 18 02:24:43 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 57CCD16A4CE for ; Tue, 18 May 2004 02:24:43 -0700 (PDT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C78B43D55 for ; Tue, 18 May 2004 02:24:41 -0700 (PDT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 776ABACADB; Tue, 18 May 2004 11:24:39 +0200 (CEST) Date: Tue, 18 May 2004 11:24:39 +0200 From: Pawel Jakub Dawidek To: freebsd-net@freebsd.org Message-ID: <20040518092439.GF845@darkness.comp.waw.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5lVNUoiW0yyvItcX" Content-Disposition: inline User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 Subject: ia_netbroadcast X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 May 2004 09:24:43 -0000 --5lVNUoiW0yyvItcX Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. 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. --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --5lVNUoiW0yyvItcX Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAqdZXForvXbEpPzQRAipgAJ9mC+kvUyumgPdbSt34JSeGX2gwkgCg6auE 841Wxuy2A8Ya+tPeOPbutb8= =iMqe -----END PGP SIGNATURE----- --5lVNUoiW0yyvItcX--