Show number of packets per path

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2018-04-03 09:27:22 +00:00
parent 7276305906
commit 8401b7c112
2 changed files with 7 additions and 3 deletions

2
mud

Submodule mud updated: c63c94d7c8...0c11ce5785

View File

@@ -52,7 +52,9 @@ gt_path_status(int fd)
" public: %s port %"PRIu16"\n" " public: %s port %"PRIu16"\n"
" peer: %s port %"PRIu16"\n" " peer: %s port %"PRIu16"\n"
" mtu: %zu bytes\n" " mtu: %zu bytes\n"
" rtt: %.3f ms\n", " rtt: %.3f ms\n"
" output: %"PRIu64" packets\n"
" input: %"PRIu64" packets\n",
statestr, statestr,
bindstr[0] ? bindstr : "-", bindstr[0] ? bindstr : "-",
gt_get_port((struct sockaddr *)&res.path_status.local_addr), gt_get_port((struct sockaddr *)&res.path_status.local_addr),
@@ -61,7 +63,9 @@ gt_path_status(int fd)
peerstr[0] ? peerstr : "-", peerstr[0] ? peerstr : "-",
gt_get_port((struct sockaddr *)&res.path_status.addr), gt_get_port((struct sockaddr *)&res.path_status.addr),
res.path_status.mtu.ok, res.path_status.mtu.ok,
res.path_status.rtt/(double)1e3); res.path_status.rtt/(double)1e3,
res.path_status.send.total,
res.path_status.recv.total);
} while (res.ret == EAGAIN); } while (res.ret == EAGAIN);
return 0; return 0;