| 157 | } |
| 158 | |
| 159 | bool |
| 160 | IpAllow::ip_category_contains_addr(std::string const &category, swoc::IPAddr const &addr) |
| 161 | { |
| 162 | self_type *self = acquire(); |
| 163 | auto const spot = self->ip_category_map.find(category); |
| 164 | if (spot == self->ip_category_map.end()) { |
| 165 | return false; |
| 166 | } |
| 167 | auto const &space = spot->second; |
| 168 | bool const found = space.find(addr) != space.end(); |
| 169 | self->release(); |
| 170 | return found; |
| 171 | } |
| 172 | |
| 173 | IpAllow::ACL |
| 174 | IpAllow::match(swoc::IPAddr const &addr, match_key_t key) |