From owner-cvs-all@FreeBSD.ORG Fri Mar 3 17:21:09 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org 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 D55AB16A422; Fri, 3 Mar 2006 17:21:09 +0000 (GMT) (envelope-from csjp@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 944D443D45; Fri, 3 Mar 2006 17:21:09 +0000 (GMT) (envelope-from csjp@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 k23HL9ZO055945; Fri, 3 Mar 2006 17:21:09 GMT (envelope-from csjp@repoman.freebsd.org) Received: (from csjp@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k23HL9mI055942; Fri, 3 Mar 2006 17:21:09 GMT (envelope-from csjp) Message-Id: <200603031721.k23HL9mI055942@repoman.freebsd.org> From: "Christian S.J. Peron" Date: Fri, 3 Mar 2006 17:21:09 +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/net if_ethersubr.c 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: Fri, 03 Mar 2006 17:21:10 -0000 csjp 2006-03-03 17:21:09 UTC FreeBSD src repository Modified files: sys/net if_ethersubr.c Log: Unbreak byte counters when network interfaces are in monitor mode by re-organizing the monitor return logic. We perform interface monitoring checks after we have determined if the CRC is still on the packet, if it is, m_adj() is called which will adjust the packet length. This ensures that we are not including CRC lengths in the byte counters for each packet. Discussed with: andre, glebius Revision Changes Path 1.215 +8 -8 src/sys/net/if_ethersubr.c