Source
zabbix_log(LOG_LEVEL_DEBUG, "In %s() addr:'%s' count:%d interval:%d size:%d timeout:%d retries:%d backoff:%.1f"
/*
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
typedef struct
{
zbx_uint64_t itemid;
icmpping_t icmpping;
icmppingsec_type_t type;
char *addr;
}
zbx_pinger_item_t;
ZBX_VECTOR_DECL(pinger_item, zbx_pinger_item_t)
ZBX_VECTOR_IMPL(pinger_item, zbx_pinger_item_t)
typedef struct
{
unsigned char allow_redirect;
int count;
int interval;
int size;
int timeout;
int retries;
double backoff;
zbx_vector_pinger_item_t items;
}
zbx_pinger_t;
static zbx_hash_t pinger_hash(const void *d)
{
const zbx_pinger_t *pinger = (const zbx_pinger_t *)d;
zbx_hash_t hash = 0;