From owner-freebsd-hackers Sat Mar 1 06:03:22 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id GAA06162 for hackers-outgoing; Sat, 1 Mar 1997 06:03:22 -0800 (PST) Received: from profane.iq.org (profane.iq.org [203.4.184.217]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id GAA06144 for ; Sat, 1 Mar 1997 06:03:05 -0800 (PST) Received: (from proff@localhost) by profane.iq.org (8.8.4/8.8.2) id AAA10816 for hackers@freebsd.org; Sun, 2 Mar 1997 00:59:25 +1100 (EST) From: Julian Assange Message-Id: <199703011359.AAA10816@profane.iq.org> Subject: optimised ip_input To: hackers@freebsd.org Date: Sun, 2 Mar 1997 00:59:24 +1100 (EST) X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk ip_input() is appalling slow for multi-homed hosts, taking around 2 x num_interface_addresses comparisons to detect if a packet is locally destined. I've addressed this with address caching, hashing, and intelligent handling of broadcast addresses. Interested? -- Prof. Julian Assange |If you want to build a ship, don't drum up people |together to collect wood and don't assign them tasks proff@iq.org |and work, but rather teach them to long for the endless proff@gnu.ai.mit.edu |immensity of the sea. -- Antoine de Saint Exupery