diff options
author | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org> | 2006-05-23 09:00:01 +0000 |
---|---|---|
committer | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org> | 2006-05-23 09:00:01 +0000 |
commit | 325b7d44124f57674dcaa4088e67238996a5a03b (patch) | |
tree | bbfb3034b35a7c2784691eaf49d235748bc608ab /input | |
parent | 62defdbdb365c325795b83845f266410cf7c1076 (diff) |
Add a printflow plugin is similar to the PRINTPKT plugin, but for flows. It's
output is compatible with the SYSLOG and LOGEMU plugins. (Philip Craig)
Diffstat (limited to 'input')
-rw-r--r-- | input/flow/ulogd_inpflow_NFCT.c | 8 |
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; |