oping.h | oping.h | |||
---|---|---|---|---|
/** | /** | |||
* Object oriented C module to send ICMP and ICMPv6 `echo's. | * Object oriented C module to send ICMP and ICMPv6 `echo's. | |||
* Copyright (C) 2006 Florian octo Forster <octo at verplant.org> | * Copyright (C) 2006 Florian octo Forster <octo at verplant.org> | |||
* | * | |||
* This program is free software; you can redistribute it and/or modify | * This program is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | * the Free Software Foundation; only version 2 of the License is | |||
* (at your option) any later version. | * applicable. | |||
* | * | |||
* This program is distributed in the hope that it will be useful, | * This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | * GNU General Public License for more details. | |||
* | * | |||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | |||
* along with this program; if not, write to the Free Software | * along with this program; if not, write to the Free Software | |||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 US A | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 US A | |||
*/ | */ | |||
skipping to change at line 52 | skipping to change at line 52 | |||
typedef pinghost_t pingobj_iter_t; | typedef pinghost_t pingobj_iter_t; | |||
struct pingobj; | struct pingobj; | |||
typedef struct pingobj pingobj_t; | typedef struct pingobj pingobj_t; | |||
#define PING_OPT_TIMEOUT 0x01 | #define PING_OPT_TIMEOUT 0x01 | |||
#define PING_OPT_TTL 0x02 | #define PING_OPT_TTL 0x02 | |||
#define PING_OPT_AF 0x04 | #define PING_OPT_AF 0x04 | |||
#define PING_OPT_DATA 0x08 | #define PING_OPT_DATA 0x08 | |||
#define PING_OPT_SOURCE 0x10 | ||||
#define PING_DEF_TIMEOUT 1.0 | #define PING_DEF_TIMEOUT 1.0 | |||
#define PING_DEF_TTL 255 | #define PING_DEF_TTL 255 | |||
#define PING_DEF_AF AF_UNSPEC | #define PING_DEF_AF AF_UNSPEC | |||
#define PING_DEF_DATA "Florian Forster <octo@verplant.org> http://verpla nt.org/" | #define PING_DEF_DATA "Florian Forster <octo@verplant.org> http://verpla nt.org/" | |||
/* | /* | |||
* Method definitions | * Method definitions | |||
*/ | */ | |||
pingobj_t *ping_construct (void); | pingobj_t *ping_construct (void); | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 3 lines changed or added | |||