* [ulogd2 PATCH] ulogd: printpkt: print pkt mark like kernel
@ 2021-05-24 20:59 Cole Dishington
2021-05-27 18:07 ` Pablo Neira Ayuso
0 siblings, 1 reply; 2+ messages in thread
From: Cole Dishington @ 2021-05-24 20:59 UTC (permalink / raw)
To: pablo; +Cc: netfilter-devel, Cole Dishington
Print the pkt mark in hex with a preceding '0x', like the kernel prints
pkts logged by netfilter.
Signed-off-by: Cole Dishington <Cole.Dishington@alliedtelesis.co.nz>
---
util/printpkt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/util/printpkt.c b/util/printpkt.c
index 2aacddb..b9b47b2 100644
--- a/util/printpkt.c
+++ b/util/printpkt.c
@@ -474,7 +474,7 @@ int printpkt_print(struct ulogd_key *res, char *buf)
buf_cur += sprintf(buf_cur, "GID=%u ",
ikey_get_u32(&res[KEY_OOB_GID]));
if (pp_is_valid(res, KEY_OOB_MARK))
- buf_cur += sprintf(buf_cur, "MARK=%x ",
+ buf_cur += sprintf(buf_cur, "MARK=0x%x ",
ikey_get_u32(&res[KEY_OOB_MARK]));
strcat(buf_cur, "\n");
--
2.31.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [ulogd2 PATCH] ulogd: printpkt: print pkt mark like kernel
2021-05-24 20:59 [ulogd2 PATCH] ulogd: printpkt: print pkt mark like kernel Cole Dishington
@ 2021-05-27 18:07 ` Pablo Neira Ayuso
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2021-05-27 18:07 UTC (permalink / raw)
To: Cole Dishington; +Cc: netfilter-devel
On Tue, May 25, 2021 at 08:59:13AM +1200, Cole Dishington wrote:
> Print the pkt mark in hex with a preceding '0x', like the kernel prints
> pkts logged by netfilter.
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-27 18:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-24 20:59 [ulogd2 PATCH] ulogd: printpkt: print pkt mark like kernel Cole Dishington
2021-05-27 18:07 ` Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).