diff --git a/src/iptables.c b/src/iptables.c
index 72b4481cc5148ff500d6ed01076c12378a6c3932..5e9619afc44186e8e3d1ba18c549325af08a9954 100644 (file)
--- a/src/iptables.c
+++ b/src/iptables.c
}
vl.type_instance[sizeof (vl.type_instance) - 1] = '\0';
+ strcpy (vl.type, "ipt_bytes");
values[0].counter = (counter_t) entry->counters.bcnt;
- plugin_dispatch_values ("ipt_bytes", &vl);
+ plugin_dispatch_values (&vl);
+ strcpy (vl.type, "ipt_packets");
values[0].counter = (counter_t) entry->counters.pcnt;
- plugin_dispatch_values ("ipt_packets", &vl);
+ plugin_dispatch_values (&vl);
return (0);
} /* void submit_match */