]> git.ipfire.org Git - thirdparty/squid.git/blame - src/acl/SourceIp.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / acl / SourceIp.cc
CommitLineData
8000a965 1/*
4ac4a490 2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
8000a965 3 *
bbc27441
AJ
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.
8000a965 7 */
8
bbc27441
AJ
9/* DEBUG: section 28 Access Control */
10
582c2af2 11#include "squid.h"
c0941a6a 12#include "acl/FilledChecklist.h"
602d9612 13#include "acl/SourceIp.h"
8000a965 14
8000a965 15char const *
16ACLSourceIP::typeString() const
17{
18 return "src";
19}
20
21int
22ACLSourceIP::match(ACLChecklist *checklist)
23{
c0941a6a 24 return ACLIP::match(Filled(checklist)->src_addr);
8000a965 25}
26
8000a965 27ACL *
28ACLSourceIP::clone() const
29{
30 return new ACLSourceIP(*this);
31}
f53969cc 32