From owner-cvs-src@FreeBSD.ORG Sun Oct 28 17:52:08 2007 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B25F816A46E; Sun, 28 Oct 2007 17:52:08 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id A1D6F13C4BF; Sun, 28 Oct 2007 17:52:08 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l9SHq8C8018609; Sun, 28 Oct 2007 17:52:08 GMT (envelope-from mav@repoman.freebsd.org) Received: (from mav@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l9SHq8si018608; Sun, 28 Oct 2007 17:52:08 GMT (envelope-from mav) Message-Id: <200710281752.l9SHq8si018608@repoman.freebsd.org> From: Alexander Motin Date: Sun, 28 Oct 2007 17:52:08 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/sys/netgraph netgraph.h ng_base.c ng_socket.c 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: Sun, 28 Oct 2007 17:52:08 -0000 mav 2007-10-28 17:52:08 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/netgraph netgraph.h ng_base.c ng_socket.c Log: MFC ng_base.c rev 1.136-1.137, netgraph.h rev 1.69, ng_socket.c rev 1.83 Implement new apply callback mechanism to handle item forwarding. When item forwarded, refence counter is incremented, when item processed, counter decremented. When counter reaches zero, apply handler is getting called. It allows to report connect() call status only when it is really completed. Reviewed by: julian Approved by: re (kensmith) Revision Changes Path 1.55.2.9 +37 -5 src/sys/netgraph/netgraph.h 1.102.2.13 +191 -66 src/sys/netgraph/ng_base.c 1.67.2.7 +13 -12 src/sys/netgraph/ng_socket.c