aboutsummaryrefslogtreecommitdiffstats
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
commit96ce3160e246f8ce7c4c5ebd8ae691a59512a3c8 (patch)
treee0d214efc73cc7c0f580e815a7eb7a1ae8314b85
parentec4e60310527b419efdbe457b0946557ad0af471 (diff)
downloadupstream-96ce3160e246f8ce7c4c5ebd8ae691a59512a3c8.tar.gz
upstream-96ce3160e246f8ce7c4c5ebd8ae691a59512a3c8.tar.bz2
upstream-96ce3160e246f8ce7c4c5ebd8ae691a59512a3c8.zip
wprobe: fix up data lengths in the ipfix exporter
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18919 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 9255d76c45..a0e52e2f4e 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);