From 947738ef2666e4da5c2c0e920b9dfa4dd0197ef0 Mon Sep 17 00:00:00 2001 From: octo Date: Fri, 19 May 2006 14:40:57 +0000 Subject: [PATCH] Display a line of the following form when starting `oping': PING www.ipv6.org (2001:6b0:1:ea:202:a5ff:fecd:13a6) 56 bytes of data. --- src/oping.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/oping.c b/src/oping.c index eb97e5d..975fa5c 100644 --- a/src/oping.c +++ b/src/oping.c @@ -318,6 +318,12 @@ int main (int argc, char **argv) buffer_size = sizeof (context->addr); ping_iterator_get_info (iter, PING_INFO_ADDRESS, context->addr, &buffer_size); + buffer_size = 0; + ping_iterator_get_info (iter, PING_INFO_DATA, NULL, &buffer_size); + + printf ("PING %s (%s) %u bytes of data.\n", + context->host, context->addr, buffer_size); + ping_iterator_set_context (iter, (void *) context); } -- 2.11.0