Skip to content

Commit fddc2fe

Browse files
Gerrit RenkerDavid S. Miller
authored andcommitted
[CCID3]: More to see in dccp_probe
This adds a few more fields of interest to /proc/net/dccpprobe, the following output ensues: 1 2 3 4 5 6 7 8 9 10 11 sec.usec src:sport dst:dport size s rtt p X_calc X_recv X t_ipi Also made the formatting consistent. Scripts that go with this can be downloaded from http://139.133.210.30/users/gerrit/dccp/dccp_probe/ Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk> Acked-by: Ian McDonald <ian.mcdonald@jandi.co.nz> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent f264510 commit fddc2fe

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

‎net/dccp/probe.c‎

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,18 @@ static int jdccp_sendmsg(struct kiocb *iocb, struct sock *sk,
9090
if (port == 0 || ntohs(inet->dport) == port ||
9191
ntohs(inet->sport) == port) {
9292
if (hctx)
93-
printl("%d.%d.%d.%d:%u %d.%d.%d.%d:%u %d %d %d %d %d\n",
94-
NIPQUAD(inet->saddr), ntohs(inet->sport),
95-
NIPQUAD(inet->daddr), ntohs(inet->dport), size,
96-
hctx->ccid3hctx_s, hctx->ccid3hctx_rtt,
97-
hctx->ccid3hctx_p, hctx->ccid3hctx_t_ipi);
93+
printl("%d.%d.%d.%d:%u %d.%d.%d.%d:%u %d %d %d %d %u "
94+
"%llu %llu %d\n",
95+
NIPQUAD(inet->saddr), ntohs(inet->sport),
96+
NIPQUAD(inet->daddr), ntohs(inet->dport), size,
97+
hctx->ccid3hctx_s, hctx->ccid3hctx_rtt,
98+
hctx->ccid3hctx_p, hctx->ccid3hctx_x_calc,
99+
hctx->ccid3hctx_x_recv >> 6,
100+
hctx->ccid3hctx_x >> 6, hctx->ccid3hctx_t_ipi);
98101
else
99102
printl("%d.%d.%d.%d:%u %d.%d.%d.%d:%u %d\n",
100-
NIPQUAD(inet->saddr), ntohs(inet->sport),
101-
NIPQUAD(inet->daddr), ntohs(inet->dport), size);
103+
NIPQUAD(inet->saddr), ntohs(inet->sport),
104+
NIPQUAD(inet->daddr), ntohs(inet->dport), size);
102105
}
103106

104107
jprobe_return();

0 commit comments

Comments
 (0)