(New to linux and first-time poster so please guide me if needed.) Upon using tcpprobe I realized that it prints snd_nxt and snd_una as hex which makes it harder to read and compare with tcpdump for example. Not sure if that is intentional. If not, a simple patch like this would print them as decimals. [PATCH] Display snd_nxt and snd_una as decimals for better readability. --- net/ipv4/tcp_probe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/tcp_probe.c b/net/ipv4/tcp_probe.c index f6c50af..a8e66c1 100644 --- a/net/ipv4/tcp_probe.c +++ b/net/ipv4/tcp_probe.c @@ -191,7 +191,7 @@ static int tcpprobe_sprint(char *tbuf, int n) = ktime_to_timespec64(ktime_sub(p->tstamp, tcp_probe.start)); return scnprintf(tbuf, n, - "%lu.%09lu %pISpc %pISpc %d %#x %#x %u %u %u %u %u\n", + "%lu.%09lu %pISpc %pISpc %d %u %u %u %u %u %u %u\n", (unsigned long)ts.tv_sec, (unsigned long)ts.tv_nsec, &p->src, &p->dst, p->length, p->snd_nxt, p->snd_una, -- Let me know if I am missing something obvious. Cheers, Hiren
pgpxDnPh21M9E.pgp
Description: PGP signature