#include <iosfwd>
-//TODO: remove, it is unconditionally defined and always used.
-#define PEER_MULTICAST_SIBLINGS 1
-
class NeighborTypeDomainList;
class PconnPool;
class PeerDigest;
bool sourcehash = false;
bool originserver = false;
bool no_tproxy = false;
-#if PEER_MULTICAST_SIBLINGS
bool mcast_siblings = false;
-#endif
bool auth_no_keytab = false;
} options;
p->options.no_tproxy = true;
} else if (!strcmp(token, "multicast-responder")) {
p->options.mcast_responder = true;
-#if PEER_MULTICAST_SIBLINGS
} else if (!strcmp(token, "multicast-siblings")) {
p->options.mcast_siblings = true;
-#endif
} else if (!strncmp(token, "weight=", 7)) {
p->weight = xatoi(token + 7);
} else if (!strncmp(token, "basetime=", 9)) {
if (d->type != PEER_NONE)
return d->type;
}
-#if PEER_MULTICAST_SIBLINGS
- if (p->type == PEER_MULTICAST)
- if (p->options.mcast_siblings)
- return PEER_SIBLING;
-#endif
+
+ if (p->type == PEER_MULTICAST && p->options.mcast_siblings)
+ return PEER_SIBLING;
return p->type;
}
assert(request != nullptr);
if (neighborType(p, request->url) == PEER_SIBLING) {
-#if PEER_MULTICAST_SIBLINGS
if (p->type == PEER_MULTICAST && p->options.mcast_siblings &&
(request->flags.noCache || request->flags.refresh || request->flags.loopDetected || request->flags.needValidation))
debugs(15, 2, "multicast-siblings optimization match for " << *p << ", " << request->url.authority());
-#endif
+
if (request->flags.noCache)
return false;
if (p->options.mcast_responder)
os << " multicast-responder";
-#if PEER_MULTICAST_SIBLINGS
if (p->options.mcast_siblings)
os << " multicast-siblings";
-#endif
if (p->weight != 1)
os << " weight=" << p->weight;