]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
Fix "PROTO=KEY_TCP"/"PROTO=KEY_UDP"
author/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>
Mon, 21 Apr 2008 12:39:20 +0000 (12:39 +0000)
committer/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>
Mon, 21 Apr 2008 12:39:20 +0000 (12:39 +0000)
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

index b62eed8520657eede97cd1a080ab2e2a2561e0a6..cc027b1a1da1f410fc20848f3be7f1c7590b24c0 100644 (file)
@@ -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");