summaryrefslogtreecommitdiffstats
path: root/output/pcap
diff options
context:
space:
mode:
authorEric Leblond <eric@inl.fr>2009-01-27 12:02:15 +0100
committerEric Leblond <eric@inl.fr>2009-01-27 23:48:05 +0100
commitecb2ffcb174ca2c96cd0c663bced8f46e88f0e68 (patch)
tree75928cefe6024886e194ed8da9d2361d6a8b94f8 /output/pcap
parentfc5aa5ba7961c9cae924300ca61f0fb529703fa1 (diff)
Explicitely type PCAP input key.
This patch affect type and flag to PCAP input key.
Diffstat (limited to 'output/pcap')
-rw-r--r--output/pcap/ulogd_output_PCAP.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/output/pcap/ulogd_output_PCAP.c b/output/pcap/ulogd_output_PCAP.c
index 09120a1..eb17a86 100644
--- a/output/pcap/ulogd_output_PCAP.c
+++ b/output/pcap/ulogd_output_PCAP.c
@@ -119,11 +119,21 @@ struct intr_id {
#define INTR_IDS 5
static struct ulogd_key pcap_keys[INTR_IDS] = {
- { .name = "raw.pkt" },
- { .name = "raw.pktlen" },
- { .name = "ip.totlen" },
- { .name = "oob.time.sec" },
- { .name = "oob.time.usec" },
+ { .type = ULOGD_RET_UINT32,
+ .flags = ULOGD_RETF_NONE,
+ .name = "raw.pkt" },
+ { .type = ULOGD_RET_UINT32,
+ .flags = ULOGD_RETF_NONE,
+ .name = "raw.pktlen" },
+ { .type = ULOGD_RET_UINT16,
+ .flags = ULOGD_RETF_NONE,
+ .name = "ip.totlen" },
+ { .type = ULOGD_RET_UINT32,
+ .flags = ULOGD_RETF_NONE,
+ .name = "oob.time.sec" },
+ { .type = ULOGD_RET_UINT32,
+ .flags = ULOGD_RETF_NONE,
+ .name = "oob.time.usec" },
};
#define GET_FLAGS(res, x) (res[x].u.source->flags)