summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a1c9120)
raw | patch | inline | side by side (parent: a1c9120)
author | octo <octo> | |
Mon, 17 Apr 2006 08:18:53 +0000 (08:18 +0000) | ||
committer | octo <octo> | |
Mon, 17 Apr 2006 08:18:53 +0000 (08:18 +0000) |
src/liboping/liboping.c | patch | blob | history | |
src/liboping/liboping.h | patch | blob | history |
index 43d5fd509eb0711e3c7c2d58c9354584b079db6d..12cb74077f0b59566ea54d8cd657e10cb261dd27 100644 (file)
--- a/src/liboping/liboping.c
+++ b/src/liboping/liboping.c
#define PING_DATA "Florian Forster <octo@verplant.org> http://verplant.org/"
+struct pinghost
+{
+ char *hostname;
+ struct sockaddr_storage *addr;
+ socklen_t addrlen;
+ int addrfamily;
+ int fd;
+ int ident;
+ int sequence;
+ struct timeval *timer;
+ double latency;
+
+ struct pinghost *next;
+};
+
+struct pingobj
+{
+ double timeout;
+ int ttl;
+ int addrfamily;
+
+ pinghost_t *head;
+};
+
/*
* private (static) functions
*/
index 065ae9509854e6b757855bade63b4abdf55a3a6d..9f854ebecc69d26221ced3eff6ae04acfddf02e7 100644 (file)
--- a/src/liboping/liboping.h
+++ b/src/liboping/liboping.h
/*
* Type definitions
*/
-typedef struct pinghost
-{
- char *hostname;
- struct sockaddr_storage *addr;
- socklen_t addrlen;
- int addrfamily;
- int fd;
- int ident;
- int sequence;
- struct timeval *timer;
- double latency;
-
- struct pinghost *next;
-} pinghost_t;
+struct pinghost;
+typedef struct pinghost pinghost_t;
typedef pinghost_t pingobj_iter_t;
-typedef struct pingobj
-{
- double timeout;
- int ttl;
- int addrfamily;
-
- pinghost_t *head;
-} pingobj_t;
+struct pingobj;
+typedef struct pingobj pingobj_t;
#define PING_OPT_TIMEOUT 0x01
#define PING_OPT_TTL 0x02