[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Netutils-dev] Re: ping/ping6 merging common code and segfault patch
From: |
Rakesh Pandit |
Subject: |
[Netutils-dev] Re: ping/ping6 merging common code and segfault patch |
Date: |
Wed, 15 Oct 2008 06:43:37 +0530 |
Committed.
Imported this one after review:
http://lists.gnu.org/archive/html/bug-inetutils/2008-10/msg00012.html
2008-10-14 Rakesh Pandit <address@hidden>
* ping/ping_impl.h, ping/ping.h, ping/ping_common.h,
ping/ping6.h (ping_stat, PEV_RESPONSE, PEV_DUPLICATE, PEV_NOECHO,
PING_INTERVAL, PING_CKTABSIZE, MAXWAIT, OPT_FLOOD, OPT_INTERVAL,
OPT_NUMERIC, OPT_QUIET, OPT_RROUTE, OPT_VERBOSE, PING_TIMING,
PING_HEADER_LEN, PING_DATALEN): Moved all these common macros and
structures from ping_impl.h , ping6.h and ping_ping.h to
ping_common.h.
Removed PING_INTERVAL.
* ping/ping6.c (ping_run): Used PING_SET_INTERVAL similar to
libping.c and used PING_DEFAULT_INTERVAL in place of PING_INTERVAL.
* ping/libping.c (ping_set_datalen): Removed.
* ping/libping.c, ping/ping_common.c (_ping_freebuf,
ping_unset_data):
Moved _ping_freebuf, ping_unset_data from libping.c to
ping_common.c.
* ping/ping6.c (ping_run): Free memory with call to ping_unset_data.
--
rakesh