~rousskov/squid/3p2-ecap

« back to all changes in this revision

Viewing changes to src/peer_select.cc

  • Committer: Alex Rousskov
  • Date: 2011-03-09 19:02:12 UTC
  • mfrom: (11115.4.31 trunk)
  • Revision ID: rousskov@measurement-factory.com-20110309190212-zi3f02hb2wnvglwg
Merged from parent (trunk 11270, circa 3.2.0.5+)

Show diffs side-by-side

added added

removed removed

Lines of Context:
497
497
        return;
498
498
 
499
499
    /* WAIS is not implemented natively */
500
 
    if (ps->request->protocol == PROTO_WAIS)
 
500
    if (ps->request->protocol == AnyP::PROTO_WAIS)
501
501
        return;
502
502
 
503
503
    peerAddFwdServer(&ps->servers, NULL, HIER_DIRECT);
745
745
#endif
746
746
 
747
747
static void
748
 
peerHandlePingReply(peer * p, peer_t type, protocol_t proto, void *pingdata, void *data)
 
748
peerHandlePingReply(peer * p, peer_t type, AnyP::ProtocolType proto, void *pingdata, void *data)
749
749
{
750
 
    if (proto == PROTO_ICP)
 
750
    if (proto == AnyP::PROTO_ICP)
751
751
        peerHandleIcpReply(p, type, (icp_common_t *)pingdata, data);
752
752
 
753
753
#if USE_HTCP
754
754
 
755
 
    else if (proto == PROTO_HTCP)
 
755
    else if (proto == AnyP::PROTO_HTCP)
756
756
        peerHandleHtcpReply(p, type, (htcpReplyData *)pingdata, data);
757
757
 
758
758
#endif
759
759
 
760
760
    else
761
 
        debugs(44, 1, "peerHandlePingReply: unknown protocol_t " << proto);
 
761
        debugs(44, 1, "peerHandlePingReply: unknown protocol " << proto);
762
762
}
763
763
 
764
764
static void