X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Foping.h;h=ff144e82ec2904ae0d06ee7173092bfa0f9b0e85;hb=HEAD;hp=cd7d62f9589b8098137d11b08e4a8cf6a7d23099;hpb=44e296d605a06a782f4520ace6cb67a2cbe85525;p=liboping.git diff --git a/src/oping.h b/src/oping.h index cd7d62f..ff144e8 100644 --- a/src/oping.h +++ b/src/oping.h @@ -1,6 +1,6 @@ /** * Object oriented C module to send ICMP and ICMPv6 `echo's. - * Copyright (C) 2006-2011 Florian octo Forster + * Copyright (C) 2006-2017 Florian octo Forster * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by the @@ -33,7 +33,7 @@ extern "C" { #endif -#define OPING_VERSION 1006002 +#define OPING_VERSION 1009000 /* * Type definitions @@ -53,6 +53,7 @@ typedef struct pingobj pingobj_t; #define PING_OPT_SOURCE 0x10 #define PING_OPT_DEVICE 0x20 #define PING_OPT_QOS 0x40 +#define PING_OPT_MARK 0x80 #define PING_DEF_TIMEOUT 1.0 #define PING_DEF_TTL 255 @@ -74,6 +75,7 @@ int ping_host_remove (pingobj_t *obj, const char *host); pingobj_iter_t *ping_iterator_get (pingobj_t *obj); pingobj_iter_t *ping_iterator_next (pingobj_iter_t *iter); +int ping_iterator_count (pingobj_t *obj); #define PING_INFO_HOSTNAME 1 #define PING_INFO_ADDRESS 2