{
.type = ULOGD_RET_UINT32,
.flags = ULOGD_RETF_NONE,
- .name = "flow.end.sec",
+ .name = "flow.end.usec",
.ipfix = {
.vendor = IPFIX_VENDOR_IETF,
.field_id = IPFIX_flowEndSeconds,
htable->buckets = (void *)htable + sizeof(*htable);
htable->num_buckets = htable_size;
htable->prealloc = prealloc;
+ INIT_LLIST_HEAD(&htable->idle);
for (i = 0; i < htable->num_buckets; i++)
INIT_LLIST_HEAD(&htable->buckets[i]);
{
struct nfct_conntrack *ct = arg;
struct ulogd_pluginstance *upi = data;
- struct nfct_pluginstance *cpi = (struct nfct_pluginstance *) data;
+ struct nfct_pluginstance *cpi =
+ (struct nfct_pluginstance *) upi->private;
if (type == NFCT_MSG_NEW) {
if (usehash_ce(upi->config_kset).u.value != 0)
else
prealloc = 0;
- cpi->ct_active = htable_alloc(buckets_ce(upi->config_kset).u.value,
- prealloc);
- if (!cpi->ct_active) {
- ulogd_log(ULOGD_FATAL, "error allocating hash\n");
- nfct_close(cpi->cth);
- return -1;
+ if (usehash_ce(upi->config_kset).u.value != 0) {
+ cpi->ct_active = htable_alloc(buckets_ce(upi->config_kset).u.value,
+ prealloc);
+ if (!cpi->ct_active) {
+ ulogd_log(ULOGD_FATAL, "error allocating hash\n");
+ nfct_close(cpi->cth);
+ return -1;
+ }
}
return 0;