Show mtu for each path
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
@@ -48,9 +48,11 @@ gt_path_status(int fd)
|
|||||||
printf("path %s\n"
|
printf("path %s\n"
|
||||||
" bind: %s\n"
|
" bind: %s\n"
|
||||||
" peer: %s port %"PRIu16"\n"
|
" peer: %s port %"PRIu16"\n"
|
||||||
" rtt: %.3f\n",
|
" mtu: %zu bytes\n"
|
||||||
|
" rtt: %.3f ms\n",
|
||||||
statestr, bindstr, peerstr,
|
statestr, bindstr, peerstr,
|
||||||
gt_get_port((struct sockaddr *)&res.path_status.addr),
|
gt_get_port((struct sockaddr *)&res.path_status.addr),
|
||||||
|
res.path_status.mtu.ok + 28U, /* ip+udp hdr */
|
||||||
res.path_status.rtt/(double)1e3);
|
res.path_status.rtt/(double)1e3);
|
||||||
|
|
||||||
} while (res.ret == EAGAIN);
|
} while (res.ret == EAGAIN);
|
||||||
|
|||||||
Reference in New Issue
Block a user