From d4cf078cb71a943af0dcaa51ed5f950df0fdeca3 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 23 Nov 2008 23:59:44 +0100 Subject: add ukey_* function for key assignation This patch cleans up the current key assignation by introducing a set of functions ukey_* to set the key value as Eric Leblond and we discussed during the latest Netfilter Workshop. This patch is based on an idea from Holger Eitzenberger. Signed-off-by: Eric Leblond --- filter/ulogd_filter_PRINTFLOW.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'filter/ulogd_filter_PRINTFLOW.c') diff --git a/filter/ulogd_filter_PRINTFLOW.c b/filter/ulogd_filter_PRINTFLOW.c index b78c37b..1de1ba6 100644 --- a/filter/ulogd_filter_PRINTFLOW.c +++ b/filter/ulogd_filter_PRINTFLOW.c @@ -37,8 +37,7 @@ static int printflow_interp(struct ulogd_pluginstance *upi) static char buf[4096]; printflow_print(inp, buf); - ret[0].u.value.ptr = buf; - ret[0].flags |= ULOGD_RETF_VALID; + okey_set_ptr(&ret[0], buf); return ULOGD_IRET_OK; } -- cgit v1.2.3