]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/icmp/net_db.h
19 hash_link hash
; /* must be first */
21 netdbEntry
*net_db_entry
;
36 hash_link hash
; /* must be first */
37 char network
[MAX_IPSTRLEN
];
42 time_t next_ping_time
;
51 extern void netdbInit(void);
53 extern void netdbHandlePingReply(const Ip::Address
&from
, int hops
, int rtt
);
54 extern void netdbPingSite(const char *hostname
);
55 void netdbDump(StoreEntry
*);
57 extern void netdbFreeMemory(void);
58 extern int netdbHostHops(const char *host
);
59 extern int netdbHostRtt(const char *host
);
60 extern void netdbUpdatePeer(HttpRequest
*, CachePeer
* e
, int rtt
, int hops
);
62 extern void netdbDeleteAddrNetwork(Ip::Address
&addr
);
63 extern void netdbBinaryExchange(StoreEntry
*);
64 extern void netdbExchangeStart(void *);
66 extern void netdbExchangeUpdatePeer(Ip::Address
&, CachePeer
*, double, double);
67 extern CachePeer
*netdbClosestParent(HttpRequest
*);
68 extern void netdbHostData(const char *host
, int *samp
, int *rtt
, int *hops
);
70 #endif /* ICMP_NET_DB_H */