htcpHandleTstResponse(hdr, buf, sz, from);
}
-HtcpReplyData::HtcpReplyData() : hdr(hoHtcpReply)
+HtcpReplyData::HtcpReplyData() :
+ hit(0), hdr(hoHtcpReply), msg_id(0), version(0.0)
{}
static void
htcpHandleTstResponse(htcpDataHeader * hdr, char *buf, int sz, Ip::Address &from)
{
- htcpReplyData htcpReply;
+ HtcpReplyData htcpReply;
cache_key *key = NULL;
Ip::Address *peer;
} cto;
};
-/// \bug redundant typedef
-typedef class HtcpReplyData htcpReplyData;
-
/// \ingroup ServerProtocolHTCP
-void neighborsHtcpReply(const cache_key *, htcpReplyData *, const Ip::Address &);
+void neighborsHtcpReply(const cache_key *, HtcpReplyData *, const Ip::Address &);
/// \ingroup ServerProtocolHTCP
void htcpOpenPorts(void);
Comm::ConnectionPointer icpOutgoingConn = NULL;
/* icp_common_t */
-_icp_common_t::_icp_common_t() : opcode(ICP_INVALID), version(0), length(0), reqnum(0), flags(0), pad(0), shostid(0)
+_icp_common_t::_icp_common_t() :
+ opcode(ICP_INVALID), version(0), length(0), reqnum(0),
+ flags(0), pad(0), shostid(0)
{}
-_icp_common_t::_icp_common_t(char *buf, unsigned int len)
+_icp_common_t::_icp_common_t(char *buf, unsigned int len) :
+ opcode(ICP_INVALID), version(0), reqnum(0), flags(0), pad(0), shostid(0)
{
if (len < sizeof(_icp_common_t)) {
/* mark as invalid */
Ip::Qos::Config Ip::Qos::TheConfig;
-Ip::Qos::Config::Config()
+Ip::Qos::Config::Config() : tosLocalHit(0), tosSiblingHit(0), tosParentHit(0),
+ tosMiss(0), tosMissMask(0), preserveMissTos(false),
+ preserveMissTosMask(0xFF), markLocalHit(0), markSiblingHit(0),
+ markParentHit(0), markMiss(0), markMissMask(0),
+ preserveMissMark(false), preserveMissMarkMask(0xFFFFFFFF),
+ tosToServer(NULL), tosToClient(NULL), nfmarkToServer(NULL),
+ nfmarkToClient(NULL)
{
- tosLocalHit = 0;
- tosSiblingHit = 0;
- tosParentHit = 0;
- tosMiss = 0;
- tosMissMask = 0;
- preserveMissTos = false;
- preserveMissTosMask = 0xFF;
- markLocalHit = 0;
- markSiblingHit = 0;
- markParentHit = 0;
- markMiss = 0;
- markMissMask = 0;
- preserveMissMark = false;
- preserveMissMarkMask = 0xFFFFFFFF;
}
void
badFailures(0),
pid(-1),
startTime(0),
- isRunning(false)
+ isRunning(false),
+ status(0)
{
}
badFailures(0),
pid(-1),
startTime(0),
- isRunning(false)
+ isRunning(false),
+ status(0)
{
}
static void neighborRemove(CachePeer *);
static void neighborAlive(CachePeer *, const MemObject *, const icp_common_t *);
#if USE_HTCP
-static void neighborAliveHtcp(CachePeer *, const MemObject *, const htcpReplyData *);
+static void neighborAliveHtcp(CachePeer *, const MemObject *, const HtcpReplyData *);
#endif
static void neighborCountIgnored(CachePeer *);
static void peerRefreshDNS(void *);
#if USE_HTCP
static void
-neighborAliveHtcp(CachePeer * p, const MemObject * mem, const htcpReplyData * htcp)
+neighborAliveHtcp(CachePeer * p, const MemObject * mem, const HtcpReplyData * htcp)
{
peerAlive(p);
++ p->stats.pings_acked;
#if USE_HTCP
void
-neighborsHtcpReply(const cache_key * key, htcpReplyData * htcp, const Ip::Address &from)
+neighborsHtcpReply(const cache_key * key, HtcpReplyData * htcp, const Ip::Address &from)
{
StoreEntry *e = Store::Root().get(key);
MemObject *mem = NULL;
static void peerSelectStateFree(ps_state * psstate);
static void peerIcpParentMiss(CachePeer *, icp_common_t *, ps_state *);
#if USE_HTCP
-static void peerHtcpParentMiss(CachePeer *, htcpReplyData *, ps_state *);
-static void peerHandleHtcpReply(CachePeer *, peer_t, htcpReplyData *, void *);
+static void peerHtcpParentMiss(CachePeer *, HtcpReplyData *, ps_state *);
+static void peerHandleHtcpReply(CachePeer *, peer_t, HtcpReplyData *, void *);
#endif
static int peerCheckNetdbDirect(ps_state * psstate);
static void peerGetSomeNeighbor(ps_state *);
#if USE_HTCP
static void
-peerHandleHtcpReply(CachePeer * p, peer_t type, htcpReplyData * htcp, void *data)
+peerHandleHtcpReply(CachePeer * p, peer_t type, HtcpReplyData * htcp, void *data)
{
ps_state *psstate = (ps_state *)data;
debugs(44, 3, "peerHandleHtcpReply: " <<
}
static void
-peerHtcpParentMiss(CachePeer * p, htcpReplyData * htcp, ps_state * ps)
+peerHtcpParentMiss(CachePeer * p, HtcpReplyData * htcp, ps_state * ps)
{
int rtt;
#if USE_HTCP
else if (proto == AnyP::PROTO_HTCP)
- peerHandleHtcpReply(p, type, (htcpReplyData *)pingdata, data);
+ peerHandleHtcpReply(p, type, (HtcpReplyData *)pingdata, data);
#endif
return &sslHelper;
}
-Ssl::Helper::Helper()
+Ssl::Helper::Helper() : ssl_crtd(NULL)
{
}