]>
Commit | Line | Data |
---|---|---|
48071869 | 1 | /* |
bde978a6 | 2 | * Copyright (C) 1996-2015 The Squid Software Foundation and contributors |
48071869 | 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. | |
48071869 | 7 | */ |
8 | ||
582c2af2 | 9 | #include "squid.h" |
127dce76 | 10 | #include "acl/Checklist.h" |
602d9612 A |
11 | #include "acl/IntRange.h" |
12 | #include "acl/LocalPort.h" | |
48071869 | 13 | |
48071869 | 14 | int |
33810b1d | 15 | ACLLocalPortStrategy::match (ACLData<MatchType> * &data, ACLFilledChecklist *checklist, ACLFlags &) |
48071869 | 16 | { |
4dd643d5 | 17 | return data->match (checklist->my_addr.port()); |
48071869 | 18 | } |
19 | ||
1e40905d AJ |
20 | ACLLocalPortStrategy * |
21 | ACLLocalPortStrategy::Instance() | |
48071869 | 22 | { |
23 | return &Instance_; | |
24 | } | |
25 | ||
1e40905d | 26 | ACLLocalPortStrategy ACLLocalPortStrategy::Instance_; |
f53969cc | 27 |