From owner-svn-soc-all@FreeBSD.ORG Tue Sep 9 11:56:27 2014 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B0A099E7 for ; Tue, 9 Sep 2014 11:56:27 +0000 (UTC) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9C5C2E2A for ; Tue, 9 Sep 2014 11:56:27 +0000 (UTC) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.14.9/8.14.9) with ESMTP id s89BuRWh029854 for ; Tue, 9 Sep 2014 11:56:27 GMT (envelope-from dpl@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.14.9/8.14.9/Submit) id s89BuRMC029852 for svn-soc-all@FreeBSD.org; Tue, 9 Sep 2014 11:56:27 GMT (envelope-from dpl@FreeBSD.org) Date: Tue, 9 Sep 2014 11:56:27 GMT Message-Id: <201409091156.s89BuRMC029852@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to dpl@FreeBSD.org using -f From: dpl@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r273840 - soc2014/dpl/netmap-ipfwjit/sys/netpfil/ipfw MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2014 11:56:27 -0000 Author: dpl Date: Tue Sep 9 11:56:26 2014 New Revision: 273840 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=273840 Log: Written code to deny packets. Modified: soc2014/dpl/netmap-ipfwjit/sys/netpfil/ipfw/jit.cc Modified: soc2014/dpl/netmap-ipfwjit/sys/netpfil/ipfw/jit.cc ============================================================================== --- soc2014/dpl/netmap-ipfwjit/sys/netpfil/ipfw/jit.cc Tue Sep 9 10:52:50 2014 (r273839) +++ soc2014/dpl/netmap-ipfwjit/sys/netpfil/ipfw/jit.cc Tue Sep 9 11:56:26 2014 (r273840) @@ -1438,6 +1438,12 @@ void emit_deny() { + // retval = IP_FW_DENY; + Irb.CreateStore(ConstantInt::get(Int32Ty, IP_FW_DENY), Retval); + // l = 0; /* exit inner loop */ + Irb.CreateStore(ConstantInt::get(Int32Ty, 0), L); + // done = 1; /* exit outer loop */ + Irb.CreateStore(ConstantInt::get(Int32Ty, 1), Done); } // XXX Not tested.