]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
Explicitely type PCAP input key.
authorEric Leblond <eric@inl.fr>
Tue, 27 Jan 2009 11:02:15 +0000 (12:02 +0100)
committerEric Leblond <eric@inl.fr>
Tue, 27 Jan 2009 22:48:05 +0000 (23:48 +0100)
This patch affect type and flag to PCAP input key.

output/pcap/ulogd_output_PCAP.c

index 09120a14cdeebb14fcf85de8347da100b4df3402..eb17a86c737f8cd05713a86dce7fb4afd479ec96 100644 (file)
@@ -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)