From owner-svn-src-all@FreeBSD.ORG Thu Sep 16 14:30:32 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8DB1C1065696; Thu, 16 Sep 2010 14:30:32 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 7BCCA8FC0A; Thu, 16 Sep 2010 14:30:32 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o8GEUWuo093941; Thu, 16 Sep 2010 14:30:32 GMT (envelope-from glebius@svn.freebsd.org) Received: (from glebius@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o8GEUWne093939; Thu, 16 Sep 2010 14:30:32 GMT (envelope-from glebius@svn.freebsd.org) Message-Id: <201009161430.o8GEUWne093939@svn.freebsd.org> From: Gleb Smirnoff Date: Thu, 16 Sep 2010 14:30:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r212734 - stable/8/sys/netgraph/netflow X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Sep 2010 14:30:32 -0000 Author: glebius Date: Thu Sep 16 14:30:32 2010 New Revision: 212734 URL: http://svn.freebsd.org/changeset/base/212734 Log: MFhead 210500: Zero padding fields of netflow records. This helps to reduce size of compressed export logs. Requested by: Alexey Illarionov Modified: stable/8/sys/netgraph/netflow/netflow.c Modified: stable/8/sys/netgraph/netflow/netflow.c ============================================================================== --- stable/8/sys/netgraph/netflow/netflow.c Thu Sep 16 13:49:10 2010 (r212733) +++ stable/8/sys/netgraph/netflow/netflow.c Thu Sep 16 14:30:32 2010 (r212734) @@ -167,6 +167,7 @@ get_export_dgram(priv_p priv) dgram = mtod(m, struct netflow_v5_export_dgram *); dgram->header.count = 0; dgram->header.version = htons(NETFLOW_V5); + dgram->header.pad = 0; } @@ -644,6 +645,8 @@ export_add(item_p item, struct flow_entr rec->tos = fle->f.r.r_tos; rec->dst_mask = fle->f.dst_mask; rec->src_mask = fle->f.src_mask; + rec->pad1 = 0; + rec->pad2 = 0; /* Not supported fields. */ rec->src_as = rec->dst_as = 0;