[netfilter-cvslog] r7435 - branches/ulog/ulogd2/util
pablo at netfilter.org
pablo at netfilter.org
Sat Apr 5 17:04:49 CEST 2008
Author: pablo at netfilter.org
Date: 2008-04-05 17:04:49 +0200 (Sat, 05 Apr 2008)
New Revision: 7435
Modified:
branches/ulog/ulogd2/util/printpkt.c
Log:
Length of MAC address was set to big and thus display was wrong. This
misbehaviour was also causing to read datas out of the correct range.
Signed-off-by: Eric Leblond <eric at inl.fr>
Modified: branches/ulog/ulogd2/util/printpkt.c
===================================================================
--- branches/ulog/ulogd2/util/printpkt.c 2008-04-05 15:00:50 UTC (rev 7434)
+++ branches/ulog/ulogd2/util/printpkt.c 2008-04-05 15:04:49 UTC (rev 7435)
@@ -428,7 +428,7 @@
/* FIXME: configurable */
if (pp_is_valid(res, KEY_RAW_MAC)) {
unsigned char *mac = (unsigned char *) GET_VALUE(res, KEY_RAW_MAC).ptr;
- int i, len = GET_VALUE(res, KEY_RAW_MACLEN).ui16 * 2;
+ int i, len = GET_VALUE(res, KEY_RAW_MACLEN).ui16;
buf_cur += sprintf(buf_cur, "MAC=");
for (i = 0; i < len; i++)
More information about the netfilter-cvslog
mailing list