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
17 void IcmpSquid::Close() STUB
18 void IcmpSquid::DomainPing(Ip::Address &, const char *) STUB
19 #if USE_ICMP
20 void IcmpSquid::SendEcho(Ip::Address &, int, const char*, int) STUB
21 void IcmpSquid::Recv(void) STUB
22 #endif
23 //IcmpSquid icmpEngine;
24 
25 #include "icmp/net_db.h"
26 void netdbInit(void) STUB
27 void netdbHandlePingReply(const Ip::Address &, int, int) STUB
28 void netdbPingSite(const char *) STUB
30 int netdbHostHops(const char *) STUB_RETVAL(-1)
31 int netdbHostRtt(const char *) STUB_RETVAL(-1)
32 void netdbUpdatePeer(const AnyP::Uri &, CachePeer *, int, int) STUB
33 void netdbDeleteAddrNetwork(Ip::Address &) STUB
35 void netdbExchangeStart(void *) STUB
36 void netdbExchangeUpdatePeer(Ip::Address &, CachePeer *, double, double) STUB
38 void netdbHostData(const char *, int *, int *, int *) STUB
39 
CachePeer * netdbClosestParent(PeerSelector *ps)
Definition: net_db.cc:1242
#define STUB_RETVAL(x)
Definition: STUB.h:42
void netdbUpdatePeer(const AnyP::Uri &url, CachePeer *e, int irtt, int ihops)
Definition: net_db.cc:986
void netdbExchangeStart(void *data)
Definition: net_db.cc:1181
int netdbHostRtt(const char *host)
Definition: net_db.cc:944
void netdbInit(void)
Definition: net_db.cc:787
Definition: forward.h:14
void Recv(void) override
Handle ICMP responses.
Definition: IcmpSquid.cc:117
void netdbDump(StoreEntry *sentry)
Definition: net_db.cc:861
#define STUB
macro to stub a void function.
Definition: STUB.h:34
Definition: Xaction.cc:137
int netdbHostHops(const char *host)
Definition: net_db.cc:928
void netdbDeleteAddrNetwork(Ip::Address &addr)
Definition: net_db.cc:1074
void netdbExchangeUpdatePeer(Ip::Address &addr, CachePeer *e, double rtt, double hops)
Definition: net_db.cc:1027
void SendEcho(Ip::Address &to, int opcode, const char *payload=nullptr, int len=0) override
Definition: IcmpSquid.cc:51
void netdbBinaryExchange(StoreEntry *s)
Definition: net_db.cc:1091
void netdbHostData(const char *host, int *samp, int *rtt, int *hops)
Definition: net_db.cc:961
int Open() override
Start pinger helper and initiate control channel.
Definition: IcmpSquid.cc:189
void netdbHandlePingReply(const Ip::Address &from, int hops, int rtt)
Definition: net_db.cc:828
void netdbPingSite(const char *hostname)
Definition: net_db.cc:811
int unsigned int
Definition: stub_fd.cc:19

 

Introduction

Documentation

Support

Miscellaneous