summaryrefslogtreecommitdiffstats
path: root/input/flow
diff options
context:
space:
mode:
Diffstat (limited to 'input/flow')
-rw-r--r--input/flow/ulogd_inpflow_NFCT.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/input/flow/ulogd_inpflow_NFCT.c b/input/flow/ulogd_inpflow_NFCT.c
index c97c7bc..34b49be 100644
--- a/input/flow/ulogd_inpflow_NFCT.c
+++ b/input/flow/ulogd_inpflow_NFCT.c
@@ -244,6 +244,11 @@ static struct ulogd_key nfct_okeys[] = {
.field_id = IPFIX_flowEndSeconds,
},
},
+ {
+ .type = ULOGD_RET_BOOL,
+ .flags = ULOGD_RETF_NONE,
+ .name = "dir",
+ },
};
static struct ct_htable *htable_alloc(int htable_size, int prealloc)
@@ -424,6 +429,9 @@ static int propagate_ct_flow(struct ulogd_pluginstance *upi,
ret[14].flags |= ULOGD_RETF_VALID;
}
+ ret[15].u.value.b = (dir == NFCT_DIR_ORIGINAL) ? 0 : 1;
+ ret[15].flags |= ULOGD_RETF_VALID;
+
ulogd_propagate_results(upi);
return 0;