From owner-freebsd-net Fri Nov 1 15:33:37 2002 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 A6FCC37B401 for ; Fri, 1 Nov 2002 15:33:36 -0800 (PST) Received: from carp.icir.org (carp.icir.org [192.150.187.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5490F43E7B for ; Fri, 1 Nov 2002 15:33:36 -0800 (PST) (envelope-from rizzo@carp.icir.org) Received: from carp.icir.org (localhost [127.0.0.1]) by carp.icir.org (8.12.3/8.12.3) with ESMTP id gA1NXVPs000637; Fri, 1 Nov 2002 15:33:31 -0800 (PST) (envelope-from rizzo@carp.icir.org) Received: (from rizzo@localhost) by carp.icir.org (8.12.3/8.12.3/Submit) id gA1NXVgf000636; Fri, 1 Nov 2002 15:33:31 -0800 (PST) (envelope-from rizzo) Date: Fri, 1 Nov 2002 15:33:31 -0800 From: Luigi Rizzo To: net@freebsd.org Subject: CTL_IPPROTO_NAMES used anywhere ? Message-ID: <20021101153331.A384@carp.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, /sys/netinet/in.h contains a huge macro, CTL_IPPROTO_NAMES, which maps to an array containing protocol names. As far as i can tell (find /usr/src | xargs grep CTL_IPPROTO_NAMES) it is not used anywhere in the source tree. Any objection to nuke it ? Besides being unused, it is extremely ugly and error prone because the assumption is that the i-th entry contains the name for protocol whose identifier is i, but how can you tell... cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message