Rename "PING_INFO_TOS" → "PING_INFO_RECV_TOS".
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Tue, 26 Oct 2010 13:11:24 +0000 (15:11 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Tue, 26 Oct 2010 13:11:24 +0000 (15:11 +0200)
src/liboping.c
src/oping.c
src/oping.h

index b0a9e5b..d5e1ffc 100644 (file)
@@ -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;
index b971cb7..313b83d 100644 (file)
@@ -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;
index 8d858fb..1ce94aa 100644 (file)
@@ -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);