DestinationIp.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_SRC_ACL_DESTINATIONIP_H
10 #define SQUID_SRC_ACL_DESTINATIONIP_H
11 
12 #include "acl/Checklist.h"
13 #include "acl/Ip.h"
14 #include "ipcache.h"
15 
16 class ACLDestinationIP : public ACLIP
17 {
19 
20 public:
21  static void StartLookup(ACLFilledChecklist &, const Acl::Node &);
22 
23  char const *typeString() const override;
24  const Acl::Options &options() override;
25  int match(ACLChecklist *checklist) override;
26 
27 private:
28  static void LookupDone(const ipcache_addrs *, const Dns::LookupDetails &, void *data);
29 
31 };
32 
33 #endif /* SQUID_SRC_ACL_DESTINATIONIP_H */
34 
IPSplay * data
Definition: Ip.h:70
std::vector< const Option * > Options
Definition: Options.h:217
static void LookupDone(const ipcache_addrs *, const Dns::LookupDetails &, void *data)
static void StartLookup(ACLFilledChecklist &, const Acl::Node &)
const char * typeString() const override
Acl::BooleanOptionValue lookupBanned
are DNS lookups allowed?
Definition: DestinationIp.h:30
int match(ACLChecklist *checklist) override
Matches the actual data in checklist against this Acl::Node.
Definition: Ip.h:49
encapsulates DNS lookup results
Definition: LookupDetails.h:22
MEMPROXY_CLASS(ACLDestinationIP)
Definition: Node.h:25
const Acl::Options & options() override

 

Introduction

Documentation

Support

Miscellaneous