summaryrefslogtreecommitdiffstats
path: root/filter/ulogd_filter_IP2BIN.c
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2008-03-25 08:49:21 +0000
committer/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2008-03-25 08:49:21 +0000
commit7c45afd592b0144f4549a85902e3aa378cfbe387 (patch)
treebc4d8a7c5d308cfd45b2f37e860293e259e11edc /filter/ulogd_filter_IP2BIN.c
parent577fb57ee6d8c1be008663b979b28a8ad9f41a26 (diff)
IP2BIN filter convert IP address from host storage to a "binary" string which
can be use by MySQL. This is not strictly speaking raw data but it was of type RAW. Following remark from Hugo Mildenberger, I introduce in this patch a dedicated type ULOGD_RET_RAWSTR. The main reason not to use a ULOGD_RET_STRING parameter is that the paramater is not human readable. Signed-off-by: Eric Leblond <eric@inl.fr>
Diffstat (limited to 'filter/ulogd_filter_IP2BIN.c')
-rw-r--r--filter/ulogd_filter_IP2BIN.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/filter/ulogd_filter_IP2BIN.c b/filter/ulogd_filter_IP2BIN.c
index 9b0110e..33db6a2 100644
--- a/filter/ulogd_filter_IP2BIN.c
+++ b/filter/ulogd_filter_IP2BIN.c
@@ -82,32 +82,32 @@ static struct ulogd_key ip2bin_inp[] = {
static struct ulogd_key ip2bin_keys[] = {
{
- .type = ULOGD_RET_RAW,
+ .type = ULOGD_RET_RAWSTR,
.flags = ULOGD_RETF_FREE,
.name = "ip.saddr.bin",
},
{
- .type = ULOGD_RET_RAW,
+ .type = ULOGD_RET_RAWSTR,
.flags = ULOGD_RETF_FREE,
.name = "ip.daddr.bin",
},
{
- .type = ULOGD_RET_RAW,
+ .type = ULOGD_RET_RAWSTR,
.flags = ULOGD_RETF_FREE,
.name = "orig.ip.saddr.bin",
},
{
- .type = ULOGD_RET_RAW,
+ .type = ULOGD_RET_RAWSTR,
.flags = ULOGD_RETF_FREE,
.name = "orig.ip.daddr.bin",
},
{
- .type = ULOGD_RET_RAW,
+ .type = ULOGD_RET_RAWSTR,
.flags = ULOGD_RETF_FREE,
.name = "reply.ip.saddr.bin",
},
{
- .type = ULOGD_RET_RAW,
+ .type = ULOGD_RET_RAWSTR,
.flags = ULOGD_RETF_FREE,
.name = "reply.ip.daddr.bin",
},