From owner-svn-soc-all@FreeBSD.ORG Tue Sep 9 11:57:07 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 07AA59FD for ; Tue, 9 Sep 2014 11:57:07 +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 E82B6E2E for ; Tue, 9 Sep 2014 11:57:06 +0000 (UTC) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.14.9/8.14.9) with ESMTP id s89Bv6pw030191 for ; Tue, 9 Sep 2014 11:57:06 GMT (envelope-from dpl@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.14.9/8.14.9/Submit) id s89Bv6SU030189 for svn-soc-all@FreeBSD.org; Tue, 9 Sep 2014 11:57:06 GMT (envelope-from dpl@FreeBSD.org) Date: Tue, 9 Sep 2014 11:57:06 GMT Message-Id: <201409091157.s89Bv6SU030189@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: r273841 - 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:57:07 -0000 Author: dpl Date: Tue Sep 9 11:57:06 2014 New Revision: 273841 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=273841 Log: Use the definition of the magic num, instead of the magic num. 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 11:56:26 2014 (r273840) +++ soc2014/dpl/netmap-ipfwjit/sys/netpfil/ipfw/jit.cc Tue Sep 9 11:57:06 2014 (r273841) @@ -1385,7 +1385,7 @@ { // retval = 0; /* accept */ - Irb.CreateStore(ConstantInt::get(Int32Ty, 0), Retval); + Irb.CreateStore(ConstantInt::get(Int32Ty, IP_FW_PASS), Retval); // l = 0; /* exit inner loop */ Irb.CreateStore(ConstantInt::get(Int32Ty, 0), L); // done = 1; /* exit outer loop */