1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

Zero padding fields of netflow records. This helps to reduce

size of compressed export logs.

Requested by:	Alexey Illarionov <littlesavage orionet.ru>
This commit is contained in:
Gleb Smirnoff 2010-07-26 13:48:35 +00:00
parent a9c9e80bec
commit 9da8211828
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210500

View File

@ -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_entry *fle)
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;