#include <ControlMatcher.h>

| Public Member Functions | |
| IpMatcher (const char *name, const char *filename) | |
| ~IpMatcher () | |
| void | Match (sockaddr const *ip_addr, RequestData *rdata, Result *result) | 
| void | AllocateSpace (int num_entries) | 
| char * | NewEntry (matcher_line *line_info) | 
| void | Print () | 
| int | getNumElements () | 
| Data * | getDataArray () | 
| Static Public Member Functions | |
| static void | PrintFunc (void *opaque_data) | 
| Data Fields | |
| IpMap | ip_map | 
| Data * | data_array | 
| int | array_len | 
| int | num_el | 
| const char * | matcher_name | 
| const char * | file_name | 
Definition at line 239 of file ControlMatcher.h.
| IpMatcher< Data, Result >::IpMatcher | ( | const char * | name, | |
| const char * | filename | |||
| ) | 
Definition at line 576 of file ControlMatcher.cc.
Definition at line 588 of file ControlMatcher.cc.
References IpMatcher< Data, Result >::data_array.
| void IpMatcher< Data, Result >::AllocateSpace | ( | int | num_entries | ) | 
Definition at line 596 of file ControlMatcher.cc.
References IpMatcher< Data, Result >::array_len, IpMatcher< Data, Result >::data_array, ink_assert, and IpMatcher< Data, Result >::num_el.
| Data* IpMatcher< Data, Result >::getDataArray | ( | ) |  [inline] | 
Definition at line 249 of file ControlMatcher.h.
| int IpMatcher< Data, Result >::getNumElements | ( | ) |  [inline] | 
Definition at line 248 of file ControlMatcher.h.
| void IpMatcher< Data, Result >::Match | ( | sockaddr const * | ip_addr, | |
| RequestData * | rdata, | |||
| Result * | result | |||
| ) | 
Definition at line 669 of file ControlMatcher.cc.
References IpMap::contains(), ink_assert, and IpMatcher< Data, Result >::ip_map.
| char * IpMatcher< Data, Result >::NewEntry | ( | matcher_line * | line_info | ) | 
Definition at line 617 of file ControlMatcher.cc.
References IpMatcher< Data, Result >::array_len, ats_malloc(), IpMatcher< Data, Result >::data_array, matcher_line::dest_entry, ExtractIpRange(), IpMatcher< Data, Result >::file_name, ink_assert, IpMatcher< Data, Result >::ip_map, matcher_line::line, matcher_line::line_num, IpMap::mark(), MATCHER_MAX_TOKENS, IpMatcher< Data, Result >::matcher_name, matcher_line::num_el, IpMatcher< Data, Result >::num_el, and IpEndpoint::sa.
| void IpMatcher< Data, Result >::Print | ( | ) | 
Definition at line 680 of file ControlMatcher.cc.
References ats_ip_ntop(), IpMap::begin(), IpMap::end(), IpMap::getCount(), IpMatcher< Data, Result >::ip_map, and IpMatcher< Data, Result >::num_el.
| static void IpMatcher< Data, Result >::PrintFunc | ( | void * | opaque_data | ) |  [static] | 
Definition at line 254 of file ControlMatcher.h.
Referenced by IpMatcher< Data, Result >::AllocateSpace(), and IpMatcher< Data, Result >::NewEntry().
| Data* IpMatcher< Data, Result >::data_array | 
Definition at line 253 of file ControlMatcher.h.
Referenced by IpMatcher< Data, Result >::AllocateSpace(), IpMatcher< CongestionControlRecord, CongestionControlRule >::getDataArray(), IpMatcher< Data, Result >::NewEntry(), and IpMatcher< Data, Result >::~IpMatcher().
Definition at line 257 of file ControlMatcher.h.
Referenced by IpMatcher< Data, Result >::NewEntry().
Definition at line 252 of file ControlMatcher.h.
Referenced by IpMatcher< Data, Result >::Match(), IpMatcher< Data, Result >::NewEntry(), and IpMatcher< Data, Result >::Print().
| const char* IpMatcher< Data, Result >::matcher_name | 
Definition at line 256 of file ControlMatcher.h.
Referenced by IpMatcher< Data, Result >::NewEntry().
Definition at line 255 of file ControlMatcher.h.
Referenced by IpMatcher< Data, Result >::AllocateSpace(), IpMatcher< CongestionControlRecord, CongestionControlRule >::getNumElements(), IpMatcher< Data, Result >::NewEntry(), and IpMatcher< Data, Result >::Print().
 1.7.1
 1.7.1