From owner-cvs-src-old@FreeBSD.ORG Tue May 3 11:00:50 2011 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 C688110657D7 for ; Tue, 3 May 2011 11:00:50 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 96B0D8FC15 for ; Tue, 3 May 2011 11:00:50 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p43B0ob1041600 for ; Tue, 3 May 2011 11:00:50 GMT (envelope-from ae@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p43B0oEH041599 for cvs-src-old@freebsd.org; Tue, 3 May 2011 11:00:50 GMT (envelope-from ae@repoman.freebsd.org) Message-Id: <201105031100.p43B0oEH041599@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to ae@repoman.freebsd.org using -f From: "Andrey V. Elsukov" Date: Tue, 3 May 2011 11:00:31 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 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: Tue, 03 May 2011 11:00:50 -0000 ae 2011-05-03 11:00:31 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/netinet/ipfw ip_dn_io.c ip_dn_private.h ip_dummynet.c Log: SVN rev 221375 on 2011-05-03 11:00:31Z by ae MFC r206428 (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. MFC r206461 (by bz): Try to help with a virtualized dummynet after r206428. This adds the explicit include (so far probably included through one of the few "hidden" includes in other header files) for vnet.h and adds a cast to unbreak LINT-VIMAGE. Revision Changes Path 1.2.2.7 +25 -15 src/sys/netinet/ipfw/ip_dn_io.c 1.3.2.3 +4 -0 src/sys/netinet/ipfw/ip_dn_private.h 1.5.2.8 +31 -16 src/sys/netinet/ipfw/ip_dummynet.c