stub_libicmp.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9#include "squid.h"
10#define STUB_API "icmp/libicmp.la"
11#include "tests/STUB.h"
12
13#include "icmp/IcmpSquid.h"
14//IcmpSquid::IcmpSquid() STUB
15//IcmpSquid::~IcmpSquid() STUB
17void IcmpSquid::Close() STUB
18void IcmpSquid::DomainPing(Ip::Address &, const char *) STUB
19#if USE_ICMP
20void IcmpSquid::SendEcho(Ip::Address &, int, const char*, int) STUB
21void IcmpSquid::Recv(void) STUB
22#endif
23//IcmpSquid icmpEngine;
24
25#include "icmp/net_db.h"
26void netdbInit(void) STUB
27void netdbHandlePingReply(const Ip::Address &, int, int) STUB
28void netdbPingSite(const char *) STUB
30int netdbHostHops(const char *) STUB_RETVAL(-1)
31int netdbHostRtt(const char *) STUB_RETVAL(-1)
32void netdbUpdatePeer(const AnyP::Uri &, CachePeer *, int, int) STUB
33void netdbDeleteAddrNetwork(Ip::Address &) STUB
35void netdbExchangeStart(void *) STUB
36void netdbExchangeUpdatePeer(Ip::Address &, CachePeer *, double, double) STUB
38void netdbHostData(const char *, int *, int *, int *) STUB
39
#define STUB
macro to stub a void function.
Definition: STUB.h:33
#define STUB_RETVAL(x)
Definition: STUB.h:41
void Recv(void) override
Handle ICMP responses.
Definition: IcmpSquid.cc:117
int Open() override
Start pinger helper and initiate control channel.
Definition: IcmpSquid.cc:189
void SendEcho(Ip::Address &to, int opcode, const char *payload=nullptr, int len=0) override
Definition: IcmpSquid.cc:51
Definition: forward.h:15
static CLCB Close
Definition: Ident.cc:73
Definition: Xaction.cc:139
void netdbPingSite(const char *hostname)
Definition: net_db.cc:827
void netdbHostData(const char *host, int *samp, int *rtt, int *hops)
Definition: net_db.cc:977
void netdbDump(StoreEntry *sentry)
Definition: net_db.cc:877
int netdbHostHops(const char *host)
Definition: net_db.cc:944
int netdbHostRtt(const char *host)
Definition: net_db.cc:960
void netdbExchangeUpdatePeer(Ip::Address &addr, CachePeer *e, double rtt, double hops)
Definition: net_db.cc:1043
void netdbInit(void)
Definition: net_db.cc:803
void netdbUpdatePeer(const AnyP::Uri &url, CachePeer *e, int irtt, int ihops)
Definition: net_db.cc:1002
void netdbDeleteAddrNetwork(Ip::Address &addr)
Definition: net_db.cc:1090
void netdbBinaryExchange(StoreEntry *s)
Definition: net_db.cc:1107
CachePeer * netdbClosestParent(PeerSelector *ps)
Definition: net_db.cc:1258
void netdbHandlePingReply(const Ip::Address &from, int hops, int rtt)
Definition: net_db.cc:844
void netdbExchangeStart(void *data)
Definition: net_db.cc:1197
int unsigned int
Definition: stub_fd.cc:19

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors