#include "squid.h"
#include "acl/FilledChecklist.h"
#include "acl/Gadgets.h"
-#include "CacheManager.h"
#include "comm/Connection.h"
#include "comm/ConnOpener.h"
#include "CommCalls.h"
#include "Store.h"
#include "icmp/net_db.h"
#include "ip/Intercept.h"
-
+#include "ip/tools.h"
+#include "mgr/Registration.h"
static PSC fwdPeerSelectionCompleteWrapper;
static PF fwdServerClosedWrapper;
if (!errorState->request)
errorState->request = HTTPMSGLOCK(request);
+
+ request->detailError(errorState->type, errorState->xerrno);
}
/**
serverDestinations[0]->tos = GetTosToServer(request);
}
#if SO_MARK
- if (Ip::Qos::TheConfig.isAclNfmarkActive()) {
- serverDestinations[0]->nfmark = GetNfmarkToServer(request);
- }
+ serverDestinations[0]->nfmark = GetNfmarkToServer(request);
+ debugs(17, 3, "fwdConnectStart: got outgoing addr " << outgoing << ", tos " << int(tos)
+ << ", netfilter mark " << serverDestinations[0]->nfmark);
+#else
+ serverDestinations[0]->nfmark = 0;
+ debugs(17, 3, "fwdConnectStart: got outgoing addr " << outgoing << ", tos " << int(tos));
#endif
AsyncCall::Pointer call = commCbCall(17,3, "fwdConnectDoneWrapper", CommConnectCbPtrFun(fwdConnectDoneWrapper, this));
void
FwdState::RegisterWithCacheManager(void)
{
- CacheManager::GetInstance()->
- registerAction("forward", "Request Forwarding Statistics", fwdStats, 0, 1);
+ Mgr::RegisterAction("forward", "Request Forwarding Statistics", fwdStats, 0, 1);
}
void