SourceDomain.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_ACLSOURCEDOMAIN_H
10#define SQUID_ACLSOURCEDOMAIN_H
11
12#include "acl/Checklist.h"
13#include "acl/Data.h"
15#include "dns/forward.h"
16
17namespace Acl
18{
19
21class SourceDomainCheck: public ParameterizedNode< ACLData<const char *> >
22{
23public:
24 /* ACL API */
25 int match(ACLChecklist *) override;
26};
27
28} // namespace Acl
29
31{
32
33public:
35 void checkForAsync(ACLChecklist *)const override;
36
37private:
39 static void LookupDone(const char *, const Dns::LookupDetails &, void *);
40};
41
42#endif /* SQUID_ACLSOURCEDOMAIN_H */
43
a "srcdomain" or "srcdom_regex" ACL
Definition: SourceDomain.h:22
int match(ACLChecklist *) override
Matches the actual data in checklist against this ACL.
Definition: SourceDomain.cc:44
encapsulates DNS lookup results
Definition: LookupDetails.h:23
static void LookupDone(const char *, const Dns::LookupDetails &, void *)
Definition: SourceDomain.cc:35
void checkForAsync(ACLChecklist *) const override
Definition: SourceDomain.cc:29
static SourceDomainLookup * Instance()
Definition: SourceDomain.cc:23
static SourceDomainLookup instance_
Definition: SourceDomain.h:38
Definition: Acl.cc:31

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors