* [PATCH] ulogd: printpkt: always print IPv6 protocol
@ 2020-02-21 6:40 Andreas Jaggi
2020-02-23 21:51 ` Pablo Neira Ayuso
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Jaggi @ 2020-02-21 6:40 UTC (permalink / raw)
To: Netfilter Development Mailing list
Print the protocol number for protocols not known by name.
Signed-off-by: Andreas Jaggi <andreas.jaggi@waterwave.ch>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ulogd: printpkt: always print IPv6 protocol
2020-02-21 6:40 [PATCH] ulogd: printpkt: always print IPv6 protocol Andreas Jaggi
@ 2020-02-23 21:51 ` Pablo Neira Ayuso
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2020-02-23 21:51 UTC (permalink / raw)
To: Andreas Jaggi; +Cc: Netfilter Development Mailing list
On Fri, Feb 21, 2020 at 07:40:36AM +0100, Andreas Jaggi wrote:
> Print the protocol number for protocols not known by name.
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-02-23 21:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-21 6:40 [PATCH] ulogd: printpkt: always print IPv6 protocol Andreas Jaggi
2020-02-23 21:51 ` Pablo Neira Ayuso
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.