From owner-cvs-all@FreeBSD.ORG Thu Dec 28 14:04:42 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BEEDF16A40F; Thu, 28 Dec 2006 14:04:42 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.freebsd.org (Postfix) with ESMTP id 4279F13C4C3; Thu, 28 Dec 2006 14:04:42 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.13.4/8.13.3) with ESMTP id kBSDZQbx061350 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 28 Dec 2006 16:35:26 +0300 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.sick.ru (8.13.4/8.13.1/Submit) id kBSDZQEW061349; Thu, 28 Dec 2006 16:35:26 +0300 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.sick.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Thu, 28 Dec 2006 16:35:25 +0300 From: Gleb Smirnoff To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Message-ID: <20061228133525.GN46380@FreeBSD.org> References: <200612281321.kBSDLsfb022830@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <200612281321.kBSDLsfb022830@repoman.freebsd.org> User-Agent: Mutt/1.5.6i Cc: Subject: Re: cvs commit: src/sys/netgraph ng_ppp.c ng_ppp.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Dec 2006 14:04:42 -0000 On Thu, Dec 28, 2006 at 01:21:54PM +0000, Gleb Smirnoff wrote: T> glebius 2006-12-28 13:21:54 UTC T> T> FreeBSD src repository T> T> Modified files: T> sys/netgraph ng_ppp.c ng_ppp.h T> Log: T> Before this commit, if the compression is enabled the, ng_ppp(4) T> node would send every outgoing frame to the "compress" hook. T> Packets received on the "compress" hook were expected to be T> compressed and PROT_COMPD tag was put on them unconditionally. T> T> After this commit an alternative compression mode can be set. T> In this mode the node doesn't put the PROT_COMPD, the compressor T> should put it itself. This is important for such kind of T> compressors, that can submit uncompressed frames. T> T> Before this commit, if the decompression is enabled, the ng_ppp(4) T> node would send and incoming frame to the "decompress" hook T> only if it has the PROT_COMPD proto tag on it. T> T> After this commit an alternative decompression mode can be set. T> In this mode the node sends all the incoming packets to the T> decompression hook. This is important for such kind of compressors T> that need uncompressed packets too, to keep their library in sync. T> T> These new features will be used in new version of mpd4, and in new T> compressor nodes. T> T> Submitted by: Alexander Motin This commit obfuscates ng_ppp_input() further. We have plans to toss some code in the ng_ppp(4), utilizing per-hook receive data methods to make its input code path more clear for reading. -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE