wprobe: fix up data lengths in the ipfix exporter
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 24 Dec 2009 10:34:29 +0000 (10:34 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 24 Dec 2009 10:34:29 +0000 (10:34 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18919 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/wprobe/src/exporter/wprobe-export.c

index 9255d76..a0e52e2 100644 (file)
@@ -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);
This page took 0.026486 seconds and 4 git commands to generate.