summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 08ea19d)
raw | patch | inline | side by side (parent: 08ea19d)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 26 Oct 2010 13:11:24 +0000 (15:11 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 26 Oct 2010 13:11:24 +0000 (15:11 +0200) |
src/liboping.c | patch | blob | history | |
src/oping.c | patch | blob | history | |
src/oping.h | patch | blob | history |
diff --git a/src/liboping.c b/src/liboping.c
index b0a9e5bc8da5491d546a78631fd8ba6c5a1fcaee..d5e1ffc255e8a53440a524ca65264bb00e922ff8 100644 (file)
--- a/src/liboping.c
+++ b/src/liboping.c
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 b971cb71e1001bcdd85dba2e1544b3f26e9f8dc4..313b83db4cd7b9849fb9dfd2bd2e7e0e5b560cef 100644 (file)
--- a/src/oping.c
+++ b/src/oping.c
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 8d858fbc9a5490200bfa84bf758e91ab95783074..1ce94aa01be6fa5c2f7d9ab9a641bd4428b3cb9b 100644 (file)
--- a/src/oping.h
+++ b/src/oping.h
#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);