]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/icmp/net_db.h
2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
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.
27 hash_link hash
; /* must be first */
29 netdbEntry
*net_db_entry
;
46 hash_link hash
; /* must be first */
47 char network
[MAX_IPSTRLEN
];
52 time_t next_ping_time
;
63 void netdbHandlePingReply(const Ip::Address
&from
, int hops
, int rtt
);
64 void netdbPingSite(const char *hostname
);
65 void netdbDump(StoreEntry
*);
67 void netdbFreeMemory(void);
68 int netdbHostHops(const char *host
);
69 int netdbHostRtt(const char *host
);
70 void netdbUpdatePeer(HttpRequest
*, CachePeer
* e
, int rtt
, int hops
);
72 void netdbDeleteAddrNetwork(Ip::Address
&addr
);
73 void netdbBinaryExchange(StoreEntry
*);
74 void netdbExchangeStart(void *);
76 void netdbExchangeUpdatePeer(Ip::Address
&, CachePeer
*, double, double);
77 CachePeer
*netdbClosestParent(HttpRequest
*);
78 void netdbHostData(const char *host
, int *samp
, int *rtt
, int *hops
);
80 #endif /* ICMP_NET_DB_H */