From owner-cvs-src@FreeBSD.ORG Mon Feb 7 19:50:34 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E82DE16A4CE; Mon, 7 Feb 2005 19:50:34 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id BCDB943D1D; Mon, 7 Feb 2005 19:50:34 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j17JoYsB034878; Mon, 7 Feb 2005 19:50:34 GMT (envelope-from glebius@repoman.freebsd.org) Received: (from glebius@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j17JoYDY034877; Mon, 7 Feb 2005 19:50:34 GMT (envelope-from glebius) Message-Id: <200502071950.j17JoYDY034877@repoman.freebsd.org> From: Gleb Smirnoff Date: Mon, 7 Feb 2005 19:50:34 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_5 Subject: cvs commit: src/sys/netgraph ng_socket.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2005 19:50:35 -0000 glebius 2005-02-07 19:50:34 UTC FreeBSD src repository Modified files: (Branch: RELENG_5) sys/netgraph ng_socket.c Log: Do a hacked MFC of rev. 1.59. Accept messages from userland if their version macthes NG_VERSION or 0. There was a bug in libnetgraph, when messages were sent with version of 0. The bug was fixed in msg.c rev 1.9.2.1. With this commit we do not break ABI during RELENG_5 lifetime, and also protect from using older and newer APIs. It is also important, that NG_VERSION has never been 0. This gentle kind of fix was suggested by scottl. Revision Changes Path 1.53.2.3 +6 -0 src/sys/netgraph/ng_socket.c