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@xxxxxx> --- util/printpkt.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/util/printpkt.c b/util/printpkt.c index 6636ac3..b62eed8 100644 --- a/util/printpkt.c +++ b/util/printpkt.c @@ -428,7 +428,7 @@ int printpkt_print(struct ulogd_key *res, char *buf) /* 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++) -- 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