summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorAndreas Jaggi <andreas.jaggi@waterwave.ch>2020-02-21 07:40:36 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2020-02-23 22:50:52 +0100
commit63135e73fd878cb71b1eebf8e877c4d4c34feba7 (patch)
tree4f76076c1eb5ee1f941e28b463dbd6f6382d84a3 /util
parentcc919f7013d2d76c8bef0b9c562c1faf98a095a3 (diff)
ulogd: printpkt: always print IPv6 protocolHEADmaster
Print the protocol number for protocols not known by name. Signed-off-by: Andreas Jaggi <andreas.jaggi@waterwave.ch> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'util')
-rw-r--r--util/printpkt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/printpkt.c b/util/printpkt.c
index 69a47ca..2aacddb 100644
--- a/util/printpkt.c
+++ b/util/printpkt.c
@@ -355,6 +355,9 @@ static int printpkt_ipv6(struct ulogd_key *res, char *buf)
break;
}
break;
+ default:
+ buf_cur += sprintf(buf_cur, "PROTO=%u ",
+ ikey_get_u8(&res[KEY_IP6_NEXTHDR]));
}
return buf_cur - buf;