From: Florian Forster Date: Tue, 26 Oct 2010 13:11:24 +0000 (+0200) Subject: Rename "PING_INFO_TOS" → "PING_INFO_RECV_TOS". X-Git-Tag: liboping-1.5.0~3^2~14 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=08991474f5e5c8208287f13351b7c25ff73acfb3;p=liboping.git Rename "PING_INFO_TOS" → "PING_INFO_RECV_TOS". --- diff --git a/src/liboping.c b/src/liboping.c index b0a9e5b..d5e1ffc 100644 --- a/src/liboping.c +++ b/src/liboping.c @@ -1738,7 +1738,7 @@ int ping_iterator_get_info (pingobj_iter_t *iter, int info, ret = 0; break; - case PING_INFO_TOS: + case PING_INFO_RECV_TOS: ret = ENOMEM; if (*buffer_len>sizeof(unsigned)) *buffer_len=sizeof(unsigned); if (!*buffer_len) *buffer_len=1; diff --git a/src/oping.c b/src/oping.c index b971cb7..313b83d 100644 --- a/src/oping.c +++ b/src/oping.c @@ -653,7 +653,7 @@ static void update_host_hook (pingobj_iter_t *iter, /* {{{ */ recv_tos = 0; buffer_len = sizeof (recv_tos); - ping_iterator_get_info (iter, PING_INFO_TOS, + ping_iterator_get_info (iter, PING_INFO_RECV_TOS, &recv_tos, &buffer_len); data_len = 0; diff --git a/src/oping.h b/src/oping.h index 8d858fb..1ce94aa 100644 --- a/src/oping.h +++ b/src/oping.h @@ -85,7 +85,7 @@ pingobj_iter_t *ping_iterator_next (pingobj_iter_t *iter); #define PING_INFO_USERNAME 8 #define PING_INFO_DROPPED 9 #define PING_INFO_RECV_TTL 10 -#define PING_INFO_TOS 11 +#define PING_INFO_RECV_TOS 11 int ping_iterator_get_info (pingobj_iter_t *iter, int info, void *buffer, size_t *buffer_len);