]>
Commit | Line | Data |
---|---|---|
8000a965 | 1 | /* |
bbc27441 | 2 | * Copyright (C) 1996-2014 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 | 15 | char const * |
16 | ACLSourceIP::typeString() const | |
17 | { | |
18 | return "src"; | |
19 | } | |
20 | ||
21 | int | |
22 | ACLSourceIP::match(ACLChecklist *checklist) | |
23 | { | |
c0941a6a | 24 | return ACLIP::match(Filled(checklist)->src_addr); |
8000a965 | 25 | } |
26 | ||
8000a965 | 27 | ACL * |
28 | ACLSourceIP::clone() const | |
29 | { | |
30 | return new ACLSourceIP(*this); | |
31 | } |