From 7c45afd592b0144f4549a85902e3aa378cfbe387 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org" Date: Tue, 25 Mar 2008 08:49:21 +0000 Subject: 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 --- filter/ulogd_filter_IP2BIN.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'filter/ulogd_filter_IP2BIN.c') 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", }, -- cgit v1.2.3