Date: Mon, 6 Aug 2012 10:50:43 +0000 (UTC) From: Luigi Rizzo <luigi@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r239092 - head/sys/netinet/ipfw Message-ID: <201208061050.q76AohxF027382@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208061050.q76AohxF027382>