Code

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 b0a9e5bc8da5491d546a78631fd8ba6c5a1fcaee..d5e1ffc255e8a53440a524ca65264bb00e922ff8 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 b971cb71e1001bcdd85dba2e1544b3f26e9f8dc4..313b83db4cd7b9849fb9dfd2bd2e7e0e5b560cef 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 8d858fbc9a5490200bfa84bf758e91ab95783074..1ce94aa01be6fa5c2f7d9ab9a641bd4428b3cb9b 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);