[PATCH 23/34] Print RAW as raw string.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Eric leblond <eric@xxxxxx>

MySQL need no to be able to print RAW datas to be able to display
IP addresses.

Signed-off-by: Eric leblond <eric@xxxxxx>
---
:100644 100644 1702acc... 4c4298c... M	util/db.c
 util/db.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/util/db.c b/util/db.c
index 1702acc..4c4298c 100644
--- a/util/db.c
+++ b/util/db.c
@@ -295,9 +295,7 @@ static int __interp_db(struct ulogd_pluginstance *upi)
 			sprintf(di->stmt_ins, "',");
 			break;
 		case ULOGD_RET_RAW:
-			ulogd_log(ULOGD_NOTICE,
-				"%s: type RAW not supported by MySQL\n",
-				upi->input.keys[i].name);
+			sprintf(di->stmt_ins, "%s,", res->u.value.ptr);
 			break;
 		default:
 			ulogd_log(ULOGD_NOTICE,
-- 
1.5.2.5

-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux