From owner-cvs-src-old@FreeBSD.ORG Fri Apr 9 18:02:43 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A17351065741 for ; Fri, 9 Apr 2010 18:02:43 +0000 (UTC) (envelope-from luigi@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 8FA648FC08 for ; Fri, 9 Apr 2010 18:02:43 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o39I2hNh086438 for ; Fri, 9 Apr 2010 18:02:43 GMT (envelope-from luigi@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o39I2hDR086437 for cvs-src-old@freebsd.org; Fri, 9 Apr 2010 18:02:43 GMT (envelope-from luigi@repoman.freebsd.org) Message-Id: <201004091802.o39I2hDR086437@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to luigi@repoman.freebsd.org using -f From: Luigi Rizzo Date: Fri, 9 Apr 2010 18:02:19 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/netinet/ipfw ip_dn_io.c ip_dn_private.h ip_dummynet.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2010 18:02:43 -0000 luigi 2010-04-09 18:02:19 UTC FreeBSD src repository Modified files: sys/netinet/ipfw ip_dn_io.c ip_dn_private.h ip_dummynet.c Log: SVN rev 206428 on 2010-04-09 18:02:19Z by luigi This commit enables partial operation of dummynet with kernels compiled with "options VIMAGE". As it is now, there is still a single instance of the pipes, and it is only usable from vnet0 (the main instance). Trying to use a pipe from a different vimage does not crash the system as it did before, but the traffic coming out from the pipe goes to the wrong place, and i still need to figure out where. Support for per-vimage pipes is almost there (just a matter of uncommenting the VNET_* definitions for dn_cfg, plus putting into the structure the remaining static variables), however i need first to figure out how init/uninit work, and also to understand where packets are ending up on exit from a pipe. In summary: vimage support for dummynet is not complete yet, but we are getting there. Revision Changes Path 1.5 +22 -15 src/sys/netinet/ipfw/ip_dn_io.c 1.5 +4 -0 src/sys/netinet/ipfw/ip_dn_private.h 1.30 +31 -16 src/sys/netinet/ipfw/ip_dummynet.c