From 1aa5f961dc107c3d29445143cc8ee8225bd6e026 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net" Date: Mon, 21 Apr 2008 12:39:20 +0000 Subject: Fix "PROTO=KEY_TCP"/"PROTO=KEY_UDP" I have no idea what the intention behind this change was, but it seems bogus, the output format should (mostly) match ipt_LOG. --- util/printpkt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/printpkt.c b/util/printpkt.c index b62eed8..cc027b1 100644 --- a/util/printpkt.c +++ b/util/printpkt.c @@ -108,7 +108,7 @@ static int printpkt_proto(struct ulogd_key *res, char *buf, int protocol) switch (protocol) { case IPPROTO_TCP: - buf_cur += sprintf(buf_cur, "PROTO=KEY_TCP "); + buf_cur += sprintf(buf_cur, "PROTO=TCP "); if (!pp_is_valid(res, KEY_TCP_SPORT)) { buf_cur += sprintf(buf_cur, "INCOMPLETE"); @@ -152,7 +152,7 @@ static int printpkt_proto(struct ulogd_key *res, char *buf, int protocol) break; case IPPROTO_UDP: - buf_cur += sprintf(buf_cur, "PROTO=KEY_UDP "); + buf_cur += sprintf(buf_cur, "PROTO=UDP "); if (!pp_is_valid(res, KEY_UDP_SPORT)) { buf_cur += sprintf(buf_cur, "INCOMPLETE"); -- cgit v1.2.3