From: /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org Date: Sun, 3 Feb 2008 12:08:23 +0000 (+0000) Subject: From: Eric Leblond X-Git-Tag: ulogd-2.0.0beta2~128 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f892c1a8067ea9c0fe8edafba6a6cc2a0c334cc;p=thirdparty%2Fulogd2.git From: Eric Leblond Fix description and indenting (cleanups) --- diff --git a/filter/ulogd_filter_IP2STR.c b/filter/ulogd_filter_IP2STR.c index 459808b..2a61220 100644 --- a/filter/ulogd_filter_IP2STR.c +++ b/filter/ulogd_filter_IP2STR.c @@ -1,6 +1,6 @@ /* ulogd_filter_IP2STR.c, Version $Revision: 1500 $ * - * ulogd interpreter plugin for ifindex to ifname conversion + * ulogd interpreter plugin for internal IP storage format to string conversion * * (C) 2008 by Eric Leblond * @@ -20,7 +20,6 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * $Id: ulogd_filter_IFINDEX.c 1500 2005-10-03 16:54:02Z laforge $ - * */ #include @@ -112,7 +111,6 @@ static struct ulogd_key ip2str_keys[] = { .flags = ULOGD_RETF_FREE, .name = "reply.ip.daddr.str", }, - }; #define GET_VALUE(res, x) (res[x].u.source->u.value) @@ -152,8 +150,7 @@ static int interp_ip2str(struct ulogd_pluginstance *pi) /* Iter on all addr fields */ for(i = START_KEY; i < MAX_KEY; i++) { if (pp_is_valid(inp, i)) { - ret[i-1].u.value.ptr = ip2str(inp, i, - oob_family); + ret[i-1].u.value.ptr = ip2str(inp, i, oob_family); ret[i-1].flags |= ULOGD_RETF_VALID; } }