DestinationDomain.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9#ifndef SQUID_ACLDESTINATIONDOMAIN_H
10#define SQUID_ACLDESTINATIONDOMAIN_H
11
12#include "acl/Checklist.h"
13#include "acl/Data.h"
15#include "dns/forward.h"
16
17namespace Acl
18{
19
21class DestinationDomainCheck: public ParameterizedNode< ACLData<const char *> >
22{
23public:
24 /* ACL API */
25 int match(ACLChecklist *) override;
26 bool requiresRequest() const override {return true;}
27 const Acl::Options &options() override;
28
29private:
31};
32
33} // namespace Acl
34
37{
38
39public:
41 void checkForAsync(ACLChecklist *)const override;
42
43private:
45 static void LookupDone(const char *, const Dns::LookupDetails &, void *);
46};
47
48#endif /* SQUID_ACLDESTINATIONDOMAIN_H */
49
a "dstdomain" or "dstdom_regex" ACL
const Acl::Options & options() override
Acl::BooleanOptionValue lookupBanned
Are DNS lookups allowed?
int match(ACLChecklist *) override
Matches the actual data in checklist against this ACL.
bool requiresRequest() const override
whether our (i.e. shallow) match() requires checklist to have a request
void checkForAsync(ACLChecklist *) const override
static DestinationDomainLookup instance_
static void LookupDone(const char *, const Dns::LookupDetails &, void *)
static DestinationDomainLookup * Instance()
encapsulates DNS lookup results
Definition: LookupDetails.h:23
Definition: Acl.cc:31
std::vector< const Option * > Options
Definition: Options.h:214
OptionValue< bool > BooleanOptionValue
Definition: Options.h:200

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors