From owner-cvs-all Tue Oct 29 8:47:26 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C8E3D37B401; Tue, 29 Oct 2002 08:47:24 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45B0143E42; Tue, 29 Oct 2002 08:47:24 -0800 (PST) (envelope-from fenner@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id g9TGkDmV031344; Tue, 29 Oct 2002 08:46:13 -0800 (PST) (envelope-from fenner@repoman.freebsd.org) Received: (from fenner@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id g9TGkDVV031343; Tue, 29 Oct 2002 08:46:13 -0800 (PST) Message-Id: <200210291646.g9TGkDVV031343@repoman.freebsd.org> From: Bill Fenner Date: Tue, 29 Oct 2002 08:46:13 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/netinet in.h ip_divert.c raw_ip.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG fenner 2002/10/29 08:46:13 PST Modified files: sys/netinet in.h ip_divert.c raw_ip.c Log: Renumber IPPROTO_DIVERT out of the range of valid IP protocol numbers. This allows socket() to return an error when the kernel is not built with IPDIVERT, and doesn't prevent future applications from using the "borrowed" IP protocol number. The sysctl net.inet.raw.olddiverterror controls whether opening a socket with the "borrowed" IP protocol fails with an accompanying kernel printf; this code should last only a couple of releases. Approved by: re Revision Changes Path 1.73 +5 -2 src/sys/netinet/in.h 1.70 +2 -2 src/sys/netinet/ip_divert.c 1.104 +12 -0 src/sys/netinet/raw_ip.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message