Squid Web Cache
master
Loading...
Searching...
No Matches
MyPortName.cc
Go to the documentation of this file.
1
/*
2
* Copyright (C) 1996-2025 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
#include "
squid.h
"
10
#include "
acl/FilledChecklist.h
"
11
#include "
acl/MyPortName.h
"
12
#include "
anyp/PortCfg.h
"
13
#include "
client_side.h
"
14
#include "
http/Stream.h
"
15
#include "
HttpRequest.h
"
16
17
int
18
Acl::MyPortNameCheck::match
(
ACLChecklist
*
const
ch)
19
{
20
const
auto
checklist =
Filled
(ch);
21
22
if
(checklist->conn() !=
nullptr
&& checklist->conn()->port !=
nullptr
)
23
return
data
->match(checklist->conn()->port->name);
24
if
(checklist->request !=
nullptr
)
25
return
data
->match(checklist->request->myportname.termedBuf());
26
return
0;
27
}
28
FilledChecklist.h
Filled
ACLFilledChecklist * Filled(ACLChecklist *checklist)
convenience and safety wrapper for dynamic_cast<ACLFilledChecklist*>
Definition
FilledChecklist.h:146
HttpRequest.h
MyPortName.h
PortCfg.h
ACLChecklist
Definition
Checklist.h:31
Acl::MyPortNameCheck::match
int match(ACLChecklist *) override
Matches the actual data in checklist against this Acl::Node.
Definition
MyPortName.cc:18
Acl::ParameterizedNode< ACLData< const char * > >::data
std::unique_ptr< Parameters > data
Definition
ParameterizedNode.h:43
client_side.h
Stream.h
squid.h
squid
src
acl
MyPortName.cc
Generated by
1.9.8