aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp
diff options
context:
space:
mode:
authorGerrit Renker <gerrit@erg.abdn.ac.uk>2007-03-20 14:02:10 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:26:56 -0400
commitfddc2feb94c1f734dc27d44d166e97ab2e005ec1 (patch)
tree6ae44bcb497d25bd988e3ae44bc745d02132d3a5 /net/dccp
parentf2645101350c6db66f0a1e72648909cc411f2b38 (diff)
[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>
Diffstat (limited to 'net/dccp')
-rw-r--r--net/dccp/probe.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/net/dccp/probe.c b/net/dccp/probe.c
index 3b1f509f51dd..1f5e3ba62065 100644
--- a/net/dccp/probe.c
+++ b/net/dccp/probe.c
@@ -90,15 +90,18 @@ static int jdccp_sendmsg(struct kiocb *iocb, struct sock *sk,
90 if (port == 0 || ntohs(inet->dport) == port || 90 if (port == 0 || ntohs(inet->dport) == port ||
91 ntohs(inet->sport) == port) { 91 ntohs(inet->sport) == port) {
92 if (hctx) 92 if (hctx)
93 printl("%d.%d.%d.%d:%u %d.%d.%d.%d:%u %d %d %d %d %d\n", 93 printl("%d.%d.%d.%d:%u %d.%d.%d.%d:%u %d %d %d %d %u "
94 NIPQUAD(inet->saddr), ntohs(inet->sport), 94 "%llu %llu %d\n",
95 NIPQUAD(inet->daddr), ntohs(inet->dport), size, 95 NIPQUAD(inet->saddr), ntohs(inet->sport),
96 hctx->ccid3hctx_s, hctx->ccid3hctx_rtt, 96 NIPQUAD(inet->daddr), ntohs(inet->dport), size,
97 hctx->ccid3hctx_p, hctx->ccid3hctx_t_ipi); 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);
98 else 101 else
99 printl("%d.%d.%d.%d:%u %d.%d.%d.%d:%u %d\n", 102 printl("%d.%d.%d.%d:%u %d.%d.%d.%d:%u %d\n",
100 NIPQUAD(inet->saddr), ntohs(inet->sport), 103 NIPQUAD(inet->saddr), ntohs(inet->sport),
101 NIPQUAD(inet->daddr), ntohs(inet->dport), size); 104 NIPQUAD(inet->daddr), ntohs(inet->dport), size);
102 } 105 }
103 106
104 jprobe_return(); 107 jprobe_return();