Print the protocol number for protocols not known by name. Signed-off-by: Andreas Jaggi <andreas.jaggi@xxxxxxxxxxxx> --- util/printpkt.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.25.0