From owner-cvs-src@FreeBSD.ORG Thu Dec 28 13:21:54 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C038116A403; Thu, 28 Dec 2006 13:21:54 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id B1A0113C480; Thu, 28 Dec 2006 13:21:54 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kBSDLsWN022831; Thu, 28 Dec 2006 13:21:54 GMT (envelope-from glebius@repoman.freebsd.org) Received: (from glebius@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kBSDLsfb022830; Thu, 28 Dec 2006 13:21:54 GMT (envelope-from glebius) Message-Id: <200612281321.kBSDLsfb022830@repoman.freebsd.org> From: Gleb Smirnoff Date: Thu, 28 Dec 2006 13:21:54 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/netgraph ng_ppp.c ng_ppp.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 28 Dec 2006 13:21:54 -0000 glebius 2006-12-28 13:21:54 UTC FreeBSD src repository Modified files: sys/netgraph ng_ppp.c ng_ppp.h Log: Before this commit, if the compression is enabled the, ng_ppp(4) node would send every outgoing frame to the "compress" hook. Packets received on the "compress" hook were expected to be compressed and PROT_COMPD tag was put on them unconditionally. After this commit an alternative compression mode can be set. In this mode the node doesn't put the PROT_COMPD, the compressor should put it itself. This is important for such kind of compressors, that can submit uncompressed frames. Before this commit, if the decompression is enabled, the ng_ppp(4) node would send and incoming frame to the "decompress" hook only if it has the PROT_COMPD proto tag on it. After this commit an alternative decompression mode can be set. In this mode the node sends all the incoming packets to the decompression hook. This is important for such kind of compressors that need uncompressed packets too, to keep their library in sync. These new features will be used in new version of mpd4, and in new compressor nodes. Submitted by: Alexander Motin Revision Changes Path 1.58 +113 -48 src/sys/netgraph/ng_ppp.c 1.13 +14 -0 src/sys/netgraph/ng_ppp.h