From owner-svn-src-head@FreeBSD.ORG Mon Aug 6 10:50:43 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B513C10657D9; Mon, 6 Aug 2012 10:50:43 +0000 (UTC) (envelope-from luigi@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A122D8FC17; Mon, 6 Aug 2012 10:50:43 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q76AohSL027384; Mon, 6 Aug 2012 10:50:43 GMT (envelope-from luigi@svn.freebsd.org) Received: (from luigi@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q76AohxF027382; Mon, 6 Aug 2012 10:50:43 GMT (envelope-from luigi@svn.freebsd.org) Message-Id: <201208061050.q76AohxF027382@svn.freebsd.org> From: Luigi Rizzo Date: Mon, 6 Aug 2012 10:50:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r239092 - head/sys/netinet/ipfw X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Aug 2012 10:50:43 -0000 Author: luigi Date: Mon Aug 6 10:50:43 2012 New Revision: 239092 URL: http://svn.freebsd.org/changeset/base/239092 Log: use FREE_PKT instead of m_freem to free an mbuf. The former is the standard form used in ipfw/dummynet, so that it is easier to remap it to different memory managers depending on the platform. Modified: head/sys/netinet/ipfw/ip_fw_log.c Modified: head/sys/netinet/ipfw/ip_fw_log.c ============================================================================== --- head/sys/netinet/ipfw/ip_fw_log.c Mon Aug 6 10:50:23 2012 (r239091) +++ head/sys/netinet/ipfw/ip_fw_log.c Mon Aug 6 10:50:43 2012 (r239092) @@ -115,7 +115,7 @@ ipfw_log_output(struct ifnet *ifp, struc struct sockaddr *dst, struct route *ro) { if (m != NULL) - m_freem(m); + FREE_PKT(m); return EINVAL; }