summaryrefslogtreecommitdiff
path: root/package/wprobe/src
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-12-24 10:34:29 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-12-24 10:34:29 +0000
commit496df32d91da94fe785d7860dabb5dc054489ba1 (patch)
treed62bbea2840a710929ea6b5aa45313f0cd78bbc1 /package/wprobe/src
parentfdd4a4e6132e58e51b7ce517eddd59fee23a9277 (diff)
downloadmtk-20170518-496df32d91da94fe785d7860dabb5dc054489ba1.zip
mtk-20170518-496df32d91da94fe785d7860dabb5dc054489ba1.tar.gz
mtk-20170518-496df32d91da94fe785d7860dabb5dc054489ba1.tar.bz2
wprobe: fix up data lengths in the ipfix exporter
SVN-Revision: 18919
Diffstat (limited to 'package/wprobe/src')
-rw-r--r--package/wprobe/src/exporter/wprobe-export.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/wprobe/src/exporter/wprobe-export.c b/package/wprobe/src/exporter/wprobe-export.c
index 9255d76..a0e52e2 100644
--- a/package/wprobe/src/exporter/wprobe-export.c
+++ b/package/wprobe/src/exporter/wprobe-export.c
@@ -149,7 +149,10 @@ add_template_fields(ipfix_t *handle, ipfix_template_t *t, struct wprobe_mapping
if (map[i].counter)
continue;
+ g_data.lens[f] = 8;
g_data.addrs[f++] = &map[i].val->s;
+
+ g_data.lens[f] = 8;
g_data.addrs[f++] = &map[i].val->ss;
if (ipfix_add_field( handle, t, FOKUS_USERID, map[i].id + 1, 8) < 0)
exit(1);