#include <LogAccess.h>
Inherited by LogAccessHttp, LogAccessICP, and LogAccessTest.
Public Member Functions | |
inkcoreapi | LogAccess () |
virtual inkcoreapi | ~LogAccess () |
virtual inkcoreapi void | init () |
virtual LogEntryType | entry_type ()=0 |
virtual inkcoreapi int | marshal_client_host_ip (char *) |
virtual inkcoreapi int | marshal_client_host_port (char *) |
virtual inkcoreapi int | marshal_client_auth_user_name (char *) |
int | marshal_client_req_timestamp_sec (char *) |
virtual inkcoreapi int | marshal_client_req_text (char *) |
virtual inkcoreapi int | marshal_client_req_http_method (char *) |
virtual inkcoreapi int | marshal_client_req_url (char *) |
virtual inkcoreapi int | marshal_client_req_url_canon (char *) |
virtual inkcoreapi int | marshal_client_req_unmapped_url_canon (char *) |
virtual inkcoreapi int | marshal_client_req_unmapped_url_path (char *) |
virtual inkcoreapi int | marshal_client_req_unmapped_url_host (char *) |
virtual inkcoreapi int | marshal_client_req_url_path (char *) |
virtual inkcoreapi int | marshal_client_req_url_scheme (char *) |
virtual inkcoreapi int | marshal_client_req_http_version (char *) |
virtual inkcoreapi int | marshal_client_req_header_len (char *) |
virtual inkcoreapi int | marshal_client_req_body_len (char *) |
virtual inkcoreapi int | marshal_client_finish_status_code (char *) |
virtual inkcoreapi int | marshal_proxy_resp_content_type (char *) |
virtual inkcoreapi int | marshal_proxy_resp_squid_len (char *) |
virtual inkcoreapi int | marshal_proxy_resp_content_len (char *) |
virtual inkcoreapi int | marshal_proxy_resp_status_code (char *) |
virtual inkcoreapi int | marshal_proxy_resp_header_len (char *) |
virtual inkcoreapi int | marshal_proxy_finish_status_code (char *) |
virtual inkcoreapi int | marshal_cache_result_code (char *) |
virtual inkcoreapi int | marshal_proxy_req_header_len (char *) |
virtual inkcoreapi int | marshal_proxy_req_body_len (char *) |
virtual inkcoreapi int | marshal_proxy_req_server_name (char *) |
virtual inkcoreapi int | marshal_proxy_req_server_ip (char *) |
virtual inkcoreapi int | marshal_proxy_hierarchy_route (char *) |
virtual inkcoreapi int | marshal_proxy_host_name (char *) |
virtual inkcoreapi int | marshal_proxy_host_ip (char *) |
virtual inkcoreapi int | marshal_server_host_ip (char *) |
virtual inkcoreapi int | marshal_server_host_name (char *) |
virtual inkcoreapi int | marshal_server_resp_status_code (char *) |
virtual inkcoreapi int | marshal_server_resp_content_len (char *) |
virtual inkcoreapi int | marshal_server_resp_header_len (char *) |
virtual inkcoreapi int | marshal_server_resp_http_version (char *) |
virtual inkcoreapi int | marshal_cache_resp_status_code (char *) |
virtual inkcoreapi int | marshal_cache_resp_content_len (char *) |
virtual inkcoreapi int | marshal_cache_resp_header_len (char *) |
virtual inkcoreapi int | marshal_cache_resp_http_version (char *) |
virtual inkcoreapi void | set_client_req_url (char *, int) |
virtual inkcoreapi void | set_client_req_url_canon (char *, int) |
virtual inkcoreapi void | set_client_req_unmapped_url_canon (char *, int) |
virtual inkcoreapi void | set_client_req_unmapped_url_path (char *, int) |
virtual inkcoreapi void | set_client_req_unmapped_url_host (char *, int) |
virtual inkcoreapi void | set_client_req_url_path (char *, int) |
virtual inkcoreapi int | marshal_client_retry_after_time (char *) |
virtual inkcoreapi int | marshal_cache_write_code (char *) |
virtual inkcoreapi int | marshal_cache_write_transform_code (char *) |
virtual inkcoreapi int | marshal_transfer_time_ms (char *) |
virtual inkcoreapi int | marshal_transfer_time_s (char *) |
virtual inkcoreapi int | marshal_file_size (char *) |
virtual inkcoreapi int | marshal_plugin_identity_id (char *) |
virtual inkcoreapi int | marshal_plugin_identity_tag (char *) |
int | marshal_entry_type (char *) |
virtual inkcoreapi int | marshal_http_header_field (LogField::Container container, char *field, char *buf) |
virtual inkcoreapi int | marshal_http_header_field_escapify (LogField::Container container, char *field, char *buf) |
int | marshal_config_int_var (char *config_var, char *buf) |
int | marshal_config_str_var (char *config_var, char *buf) |
int | marshal_record (char *record, char *buf) |
Static Public Member Functions | |
static int64_t | unmarshal_int (char **buf) |
static int | unmarshal_itoa (int64_t val, char *dest, int field_width=0, char leading_char= ' ') |
static int | unmarshal_itox (int64_t val, char *dest, int field_width=0, char leading_char= ' ') |
static int | unmarshal_int_to_str (char **buf, char *dest, int len) |
static int | unmarshal_int_to_str_hex (char **buf, char *dest, int len) |
static int | unmarshal_str (char **buf, char *dest, int len, LogSlice *slice=NULL) |
static int | unmarshal_ttmsf (char **buf, char *dest, int len) |
static int | unmarshal_http_version (char **buf, char *dest, int len) |
static int | unmarshal_http_text (char **buf, char *dest, int len, LogSlice *slice=NULL) |
static int | unmarshal_http_status (char **buf, char *dest, int len) |
static int | unmarshal_ip (char **buf, IpEndpoint *dest) |
static int | unmarshal_ip_to_str (char **buf, char *dest, int len) |
static int | unmarshal_ip_to_hex (char **buf, char *dest, int len) |
static int | unmarshal_hierarchy (char **buf, char *dest, int len, Ptr< LogFieldAliasMap > map) |
static int | unmarshal_finish_status (char **buf, char *dest, int len, Ptr< LogFieldAliasMap > map) |
static int | unmarshal_cache_code (char **buf, char *dest, int len, Ptr< LogFieldAliasMap > map) |
static int | unmarshal_entry_type (char **buf, char *dest, int len, Ptr< LogFieldAliasMap > map) |
static int | unmarshal_cache_write_code (char **buf, char *dest, int len, Ptr< LogFieldAliasMap > map) |
static int | unmarshal_client_protocol_stack (char **buf, char *dest, int len, Ptr< LogFieldAliasMap > map) |
static int | unmarshal_with_map (int64_t code, char *dest, int len, Ptr< LogFieldAliasMap > map, const char *msg=0) |
static int | unmarshal_record (char **buf, char *dest, int len) |
static int | round_strlen (int len) |
static int | strlen (char const *str) |
static inkcoreapi void | marshal_int (char *dest, int64_t source) |
static inkcoreapi void | marshal_str (char *dest, const char *source, int padded_len) |
static inkcoreapi void | marshal_mem (char *dest, const char *source, int actual_len, int padded_len) |
static inkcoreapi int | marshal_ip (char *dest, sockaddr const *ip) |
Data Fields | |
bool | initialized |
Definition at line 153 of file LogAccess.h.
inkcoreapi LogAccess::LogAccess | ( | ) | [inline] |
Definition at line 156 of file LogAccess.h.
virtual inkcoreapi LogAccess::~LogAccess | ( | ) | [inline, virtual] |
Definition at line 160 of file LogAccess.h.
virtual LogEntryType LogAccess::entry_type | ( | ) | [pure virtual] |
Implemented in LogAccessHttp, and LogAccessICP.
Referenced by marshal_entry_type().
void LogAccess::init | ( | void | ) | [virtual] |
Reimplemented in LogAccessHttp, and LogAccessTest.
Definition at line 58 of file LogAccess.cc.
References initialized.
Referenced by Log::access(), and resolve_logfield_string().
int LogAccess::marshal_cache_resp_content_len | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp.
Definition at line 463 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_cache_resp_header_len | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp.
Definition at line 472 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_cache_resp_http_version | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp.
Definition at line 482 of file LogAccess.cc.
References INK_MIN_ALIGN, and marshal_int().
Referenced by Log::init_fields().
int LogAccess::marshal_cache_resp_status_code | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp.
Definition at line 454 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_cache_result_code | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp, LogAccessICP, and LogAccessTest.
Definition at line 295 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_cache_write_code | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp.
Definition at line 494 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_cache_write_transform_code | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp.
Definition at line 500 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_client_auth_user_name | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp, LogAccessICP, and LogAccessTest.
Definition at line 108 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_client_finish_status_code | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp, and LogAccessTest.
Definition at line 232 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_client_host_ip | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp, LogAccessICP, and LogAccessTest.
Definition at line 90 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_client_host_port | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp, and LogAccessICP.
Definition at line 99 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_client_req_body_len | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp, and LogAccessTest.
Definition at line 223 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_client_req_header_len | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp, and LogAccessTest.
Definition at line 214 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_client_req_http_method | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp, LogAccessICP, and LogAccessTest.
Definition at line 126 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_client_req_http_version | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp, and LogAccessTest.
Definition at line 199 of file LogAccess.cc.
References INK_MIN_ALIGN, and marshal_int().
Referenced by Log::init_fields(), and LogAccessICP::marshal_client_req_text().
int LogAccess::marshal_client_req_text | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp, LogAccessICP, and LogAccessTest.
Definition at line 117 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_client_req_timestamp_sec | ( | char * | buf | ) |
Definition at line 561 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_client_req_unmapped_url_canon | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp.
Definition at line 153 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_client_req_unmapped_url_host | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp.
Definition at line 171 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_client_req_unmapped_url_path | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp.
Definition at line 162 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_client_req_url | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp, LogAccessICP, and LogAccessTest.
Definition at line 135 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_client_req_url_canon | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp, and LogAccessICP.
Definition at line 144 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_client_req_url_path | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp.
Definition at line 180 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_client_req_url_scheme | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp.
Definition at line 189 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_client_retry_after_time | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp.
Definition at line 350 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_config_int_var | ( | char * | config_var, | |
char * | buf | |||
) |
Definition at line 585 of file LogAccess.cc.
References marshal_int(), REC_ConfigReadInteger(), and val.
Referenced by LogField::marshal(), and LogField::marshal_len().
int LogAccess::marshal_config_str_var | ( | char * | config_var, | |
char * | buf | |||
) |
Definition at line 598 of file LogAccess.cc.
References ats_free(), marshal_str(), REC_ConfigReadString(), and strlen().
Referenced by LogField::marshal(), and LogField::marshal_len().
int LogAccess::marshal_entry_type | ( | char * | buf | ) |
Definition at line 572 of file LogAccess.cc.
References entry_type(), marshal_int(), and val.
Referenced by Log::init_fields().
int LogAccess::marshal_file_size | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp.
Definition at line 524 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_http_header_field | ( | LogField::Container | container, | |
char * | field, | |||
char * | buf | |||
) | [virtual] |
Reimplemented in LogAccessHttp.
Definition at line 532 of file LogAccess.cc.
Referenced by LogField::marshal(), and LogField::marshal_len().
int LogAccess::marshal_http_header_field_escapify | ( | LogField::Container | container, | |
char * | field, | |||
char * | buf | |||
) | [virtual] |
Reimplemented in LogAccessHttp.
Definition at line 543 of file LogAccess.cc.
Referenced by LogField::marshal(), and LogField::marshal_len().
void LogAccess::marshal_int | ( | char * | dest, | |
int64_t | source | |||
) | [inline, static] |
Definition at line 353 of file LogAccess.h.
Referenced by LogField::marshal_agg(), LogAccessHttp::marshal_cache_resp_content_len(), LogAccessHttp::marshal_cache_resp_header_len(), LogAccessHttp::marshal_cache_resp_http_version(), marshal_cache_resp_http_version(), LogAccessHttp::marshal_cache_resp_status_code(), LogAccessTest::marshal_cache_result_code(), LogAccessICP::marshal_cache_result_code(), LogAccessHttp::marshal_cache_result_code(), LogAccessHttp::marshal_cache_write_code(), LogAccessHttp::marshal_cache_write_transform_code(), LogAccessTest::marshal_client_finish_status_code(), LogAccessHttp::marshal_client_finish_status_code(), LogAccessICP::marshal_client_host_port(), LogAccessHttp::marshal_client_host_port(), LogAccessTest::marshal_client_req_body_len(), LogAccessHttp::marshal_client_req_body_len(), LogAccessTest::marshal_client_req_header_len(), LogAccessHttp::marshal_client_req_header_len(), LogAccessTest::marshal_client_req_http_method(), LogAccessTest::marshal_client_req_http_version(), LogAccessHttp::marshal_client_req_http_version(), marshal_client_req_http_version(), LogAccessHttp::marshal_client_retry_after_time(), marshal_config_int_var(), marshal_entry_type(), LogAccessHttp::marshal_file_size(), LogAccessHttp::marshal_plugin_identity_id(), LogAccessTest::marshal_proxy_finish_status_code(), LogAccessHttp::marshal_proxy_finish_status_code(), LogAccessTest::marshal_proxy_hierarchy_route(), LogAccessICP::marshal_proxy_hierarchy_route(), LogAccessHttp::marshal_proxy_hierarchy_route(), LogAccessTest::marshal_proxy_req_body_len(), LogAccessHttp::marshal_proxy_req_body_len(), LogAccessTest::marshal_proxy_req_header_len(), LogAccessHttp::marshal_proxy_req_header_len(), LogAccessTest::marshal_proxy_resp_content_len(), LogAccessICP::marshal_proxy_resp_content_len(), LogAccessHttp::marshal_proxy_resp_content_len(), LogAccessTest::marshal_proxy_resp_header_len(), LogAccessHttp::marshal_proxy_resp_header_len(), LogAccessTest::marshal_proxy_resp_squid_len(), LogAccessICP::marshal_proxy_resp_squid_len(), LogAccessHttp::marshal_proxy_resp_squid_len(), LogAccessTest::marshal_proxy_resp_status_code(), LogAccessICP::marshal_proxy_resp_status_code(), LogAccessHttp::marshal_proxy_resp_status_code(), LogAccessTest::marshal_server_resp_content_len(), LogAccessHttp::marshal_server_resp_content_len(), LogAccessTest::marshal_server_resp_header_len(), LogAccessHttp::marshal_server_resp_header_len(), LogAccessHttp::marshal_server_resp_http_version(), marshal_server_resp_http_version(), LogAccessTest::marshal_server_resp_status_code(), LogAccessHttp::marshal_server_resp_status_code(), LogAccessTest::marshal_transfer_time_ms(), LogAccessICP::marshal_transfer_time_ms(), LogAccessHttp::marshal_transfer_time_ms(), LogAccessICP::marshal_transfer_time_s(), and LogAccessHttp::marshal_transfer_time_s().
int LogAccess::marshal_ip | ( | char * | dest, | |
sockaddr const * | ip | |||
) | [static] |
Definition at line 815 of file LogAccess.cc.
References LogFieldIp6::_addr, LogFieldIp4::_addr, LogFieldIp::_family, LogFieldIpStorage::_ip, LogFieldIpStorage::_ip4, LogFieldIpStorage::_ip6, ats_ip4_addr_cast(), ats_ip6_addr_cast(), ats_is_ip4(), ats_is_ip6(), INK_ALIGN_DEFAULT, and memcpy.
Referenced by LogAccessTest::marshal_client_host_ip(), LogAccessICP::marshal_client_host_ip(), LogAccessHttp::marshal_client_host_ip(), marshal_proxy_host_ip(), LogAccessHttp::marshal_proxy_req_server_ip(), LogAccessTest::marshal_server_host_ip(), and LogAccessHttp::marshal_server_host_ip().
void LogAccess::marshal_mem | ( | char * | dest, | |
const char * | source, | |||
int | actual_len, | |||
int | padded_len | |||
) | [static] |
Definition at line 783 of file LogAccess.cc.
References ink_assert, and memcpy.
Referenced by LogAccessHttp::marshal_client_req_http_method(), LogAccessHttp::marshal_client_req_unmapped_url_canon(), LogAccessHttp::marshal_client_req_unmapped_url_host(), LogAccessHttp::marshal_client_req_unmapped_url_path(), LogAccessHttp::marshal_client_req_url(), LogAccessHttp::marshal_client_req_url_canon(), LogAccessHttp::marshal_client_req_url_path(), LogAccessHttp::marshal_client_req_url_scheme(), LogAccessHttp::marshal_proxy_resp_content_type(), and LogAccessHttp::marshal_server_host_name().
int LogAccess::marshal_plugin_identity_id | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp.
Definition at line 78 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_plugin_identity_tag | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp.
Definition at line 84 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_proxy_finish_status_code | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp, and LogAccessTest.
Definition at line 286 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_proxy_hierarchy_route | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp, LogAccessICP, and LogAccessTest.
Definition at line 340 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_proxy_host_ip | ( | char * | buf | ) | [virtual] |
Definition at line 383 of file LogAccess.cc.
References Machine::instance(), and marshal_ip().
Referenced by Log::init_fields().
int LogAccess::marshal_proxy_host_name | ( | char * | buf | ) | [virtual] |
Definition at line 360 of file LogAccess.cc.
References Machine::hostname, Machine::instance(), marshal_str(), and strlen().
Referenced by Log::init_fields().
int LogAccess::marshal_proxy_req_body_len | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp, and LogAccessTest.
Definition at line 313 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_proxy_req_header_len | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp, and LogAccessTest.
Definition at line 304 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_proxy_req_server_ip | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp.
Definition at line 331 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_proxy_req_server_name | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp.
Definition at line 322 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_proxy_resp_content_len | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp, LogAccessICP, and LogAccessTest.
Definition at line 259 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_proxy_resp_content_type | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp, LogAccessICP, and LogAccessTest.
Definition at line 241 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_proxy_resp_header_len | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp, and LogAccessTest.
Definition at line 277 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_proxy_resp_squid_len | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp, LogAccessICP, and LogAccessTest.
Definition at line 250 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_proxy_resp_status_code | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp, LogAccessICP, and LogAccessTest.
Definition at line 268 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_record | ( | char * | record, | |
char * | buf | |||
) |
Definition at line 622 of file LogAccess.cc.
References ink_assert, int64_to_str(), LOG_COUNTER, LOG_FLOAT, LOG_INTEGER, LOG_STRING, memcpy, REC_readCounter(), REC_readFloat(), REC_readInteger(), REC_readString(), RecGetRecordDataType(), strlen(), and val.
Referenced by LogField::marshal(), and LogField::marshal_len().
int LogAccess::marshal_server_host_ip | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp, and LogAccessTest.
Definition at line 393 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_server_host_name | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp, LogAccessICP, and LogAccessTest.
Definition at line 402 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_server_resp_content_len | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp, and LogAccessTest.
Definition at line 420 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_server_resp_header_len | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp, and LogAccessTest.
Definition at line 429 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_server_resp_http_version | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp.
Definition at line 439 of file LogAccess.cc.
References INK_MIN_ALIGN, and marshal_int().
Referenced by Log::init_fields().
int LogAccess::marshal_server_resp_status_code | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp, and LogAccessTest.
Definition at line 411 of file LogAccess.cc.
Referenced by Log::init_fields().
void LogAccess::marshal_str | ( | char * | dest, | |
const char * | source, | |||
int | padded_len | |||
) | [static] |
Definition at line 753 of file LogAccess.cc.
References ink_strlcpy(), and strlen().
Referenced by LogAccessTest::marshal_client_auth_user_name(), LogAccessICP::marshal_client_auth_user_name(), LogAccessHttp::marshal_client_auth_user_name(), LogAccessICP::marshal_client_req_http_method(), LogAccessTest::marshal_client_req_text(), LogAccessTest::marshal_client_req_url(), LogAccessICP::marshal_client_req_url(), LogAccessICP::marshal_client_req_url_canon(), marshal_config_str_var(), LogAccessHttp::marshal_http_header_field(), LogAccessHttp::marshal_http_header_field_escapify(), LogAccessHttp::marshal_plugin_identity_tag(), marshal_proxy_host_name(), LogAccessHttp::marshal_proxy_req_server_name(), LogAccessTest::marshal_proxy_resp_content_type(), LogAccessICP::marshal_proxy_resp_content_type(), LogAccessTest::marshal_server_host_name(), and LogAccessICP::marshal_server_host_name().
int LogAccess::marshal_transfer_time_ms | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp, LogAccessICP, and LogAccessTest.
Definition at line 509 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::marshal_transfer_time_s | ( | char * | buf | ) | [virtual] |
Reimplemented in LogAccessHttp, and LogAccessICP.
Definition at line 515 of file LogAccess.cc.
Referenced by Log::init_fields().
int LogAccess::round_strlen | ( | int | len | ) | [inline, static] |
Definition at line 330 of file LogAccess.h.
References INK_ALIGN_DEFAULT.
Referenced by LogAccessHttp::marshal_client_req_http_method(), LogAccessHttp::marshal_client_req_unmapped_url_canon(), LogAccessHttp::marshal_client_req_unmapped_url_host(), LogAccessHttp::marshal_client_req_unmapped_url_path(), LogAccessHttp::marshal_client_req_url(), LogAccessICP::marshal_client_req_url_canon(), LogAccessHttp::marshal_client_req_url_canon(), LogAccessHttp::marshal_client_req_url_path(), LogAccessHttp::marshal_client_req_url_scheme(), LogAccessHttp::marshal_http_header_field(), LogAccessHttp::marshal_http_header_field_escapify(), LogAccessHttp::marshal_proxy_resp_content_type(), LogAccessHttp::marshal_server_host_name(), parse_log_buff(), and strlen().
virtual inkcoreapi void LogAccess::set_client_req_unmapped_url_canon | ( | char * | , | |
int | ||||
) | [inline, virtual] |
Reimplemented in LogAccessHttp.
Definition at line 232 of file LogAccess.h.
Referenced by Log::init_fields().
virtual inkcoreapi void LogAccess::set_client_req_unmapped_url_host | ( | char * | , | |
int | ||||
) | [inline, virtual] |
Reimplemented in LogAccessHttp.
Definition at line 234 of file LogAccess.h.
Referenced by Log::init_fields().
virtual inkcoreapi void LogAccess::set_client_req_unmapped_url_path | ( | char * | , | |
int | ||||
) | [inline, virtual] |
Reimplemented in LogAccessHttp.
Definition at line 233 of file LogAccess.h.
Referenced by Log::init_fields().
virtual inkcoreapi void LogAccess::set_client_req_url | ( | char * | , | |
int | ||||
) | [inline, virtual] |
Reimplemented in LogAccessHttp.
Definition at line 230 of file LogAccess.h.
Referenced by Log::init_fields().
virtual inkcoreapi void LogAccess::set_client_req_url_canon | ( | char * | , | |
int | ||||
) | [inline, virtual] |
Reimplemented in LogAccessHttp.
Definition at line 231 of file LogAccess.h.
Referenced by Log::init_fields().
virtual inkcoreapi void LogAccess::set_client_req_url_path | ( | char * | , | |
int | ||||
) | [inline, virtual] |
Reimplemented in LogAccessHttp.
Definition at line 235 of file LogAccess.h.
Referenced by Log::init_fields().
int LogAccess::strlen | ( | char const * | str | ) | [inline, static] |
Definition at line 343 of file LogAccess.h.
References DEFAULT_STR, and round_strlen().
Referenced by LogObject::log(), LogAccessTest::marshal_client_auth_user_name(), LogAccessICP::marshal_client_auth_user_name(), LogAccessICP::marshal_client_req_http_method(), LogAccessTest::marshal_client_req_text(), LogAccessTest::marshal_client_req_url(), LogAccessICP::marshal_client_req_url(), LogAccessICP::marshal_client_req_url_canon(), marshal_config_str_var(), LogAccessHttp::marshal_http_header_field(), LogAccessHttp::marshal_http_header_field_escapify(), LogAccessHttp::marshal_plugin_identity_tag(), marshal_proxy_host_name(), LogAccessHttp::marshal_proxy_req_server_name(), LogAccessTest::marshal_proxy_resp_content_type(), LogAccessICP::marshal_proxy_resp_content_type(), marshal_record(), LogAccessTest::marshal_server_host_name(), LogAccessICP::marshal_server_host_name(), marshal_str(), parse_log_buff(), unmarshal_http_version(), unmarshal_ip_to_str(), unmarshal_record(), and unmarshal_str().
int LogAccess::unmarshal_cache_code | ( | char ** | buf, | |
char * | dest, | |||
int | len, | |||
Ptr< LogFieldAliasMap > | map | |||
) | [static] |
Definition at line 1303 of file LogAccess.cc.
References ink_assert, unmarshal_int(), and unmarshal_with_map().
Referenced by Log::init_fields().
int LogAccess::unmarshal_cache_write_code | ( | char ** | buf, | |
char * | dest, | |||
int | len, | |||
Ptr< LogFieldAliasMap > | map | |||
) | [static] |
Definition at line 1327 of file LogAccess.cc.
References ink_assert, unmarshal_int(), and unmarshal_with_map().
Referenced by Log::init_fields().
static int LogAccess::unmarshal_client_protocol_stack | ( | char ** | buf, | |
char * | dest, | |||
int | len, | |||
Ptr< LogFieldAliasMap > | map | |||
) | [static] |
int LogAccess::unmarshal_entry_type | ( | char ** | buf, | |
char * | dest, | |||
int | len, | |||
Ptr< LogFieldAliasMap > | map | |||
) | [static] |
Definition at line 1317 of file LogAccess.cc.
References ink_assert, unmarshal_int(), and unmarshal_with_map().
Referenced by Log::init_fields().
int LogAccess::unmarshal_finish_status | ( | char ** | buf, | |
char * | dest, | |||
int | len, | |||
Ptr< LogFieldAliasMap > | map | |||
) | [static] |
Definition at line 1284 of file LogAccess.cc.
References ink_assert, unmarshal_int(), and unmarshal_with_map().
Referenced by Log::init_fields().
int LogAccess::unmarshal_hierarchy | ( | char ** | buf, | |
char * | dest, | |||
int | len, | |||
Ptr< LogFieldAliasMap > | map | |||
) | [static] |
Definition at line 1266 of file LogAccess.cc.
References ink_assert, unmarshal_int(), and unmarshal_with_map().
Referenced by Log::init_fields().
int LogAccess::unmarshal_http_status | ( | char ** | buf, | |
char * | dest, | |||
int | len | |||
) | [static] |
Definition at line 1157 of file LogAccess.cc.
References ink_assert, memcpy, unmarshal_int(), unmarshal_itoa(), and val.
Referenced by Log::init_fields().
int LogAccess::unmarshal_http_text | ( | char ** | buf, | |
char * | dest, | |||
int | len, | |||
LogSlice * | slice = NULL | |||
) | [static] |
Definition at line 1120 of file LogAccess.cc.
References ink_assert, unmarshal_http_version(), and unmarshal_str().
Referenced by Log::init_fields(), and LogField::unmarshal().
int LogAccess::unmarshal_http_version | ( | char ** | buf, | |
char * | dest, | |||
int | len | |||
) | [static] |
Definition at line 1078 of file LogAccess.cc.
References ink_assert, memcpy, strlen(), and unmarshal_int_to_str().
Referenced by Log::init_fields(), and unmarshal_http_text().
int64_t LogAccess::unmarshal_int | ( | char ** | buf | ) | [static] |
Definition at line 876 of file LogAccess.cc.
References ink_assert, and val.
Referenced by unmarshal_cache_code(), unmarshal_cache_write_code(), unmarshal_entry_type(), unmarshal_finish_status(), unmarshal_hierarchy(), unmarshal_http_status(), unmarshal_int_to_str(), unmarshal_int_to_str_hex(), and unmarshal_ttmsf().
int LogAccess::unmarshal_int_to_str | ( | char ** | buf, | |
char * | dest, | |||
int | len | |||
) | [static] |
Definition at line 957 of file LogAccess.cc.
References ink_assert, memcpy, unmarshal_int(), unmarshal_itoa(), and val.
Referenced by Log::init_fields(), LogBuffer::resolve_custom_entry(), and unmarshal_http_version().
int LogAccess::unmarshal_int_to_str_hex | ( | char ** | buf, | |
char * | dest, | |||
int | len | |||
) | [static] |
Definition at line 981 of file LogAccess.cc.
References ink_assert, memcpy, unmarshal_int(), unmarshal_itox(), and val.
Referenced by Log::init_fields(), and LogBuffer::resolve_custom_entry().
int LogAccess::unmarshal_ip | ( | char ** | buf, | |
IpEndpoint * | dest | |||
) | [static] |
Definition at line 1179 of file LogAccess.cc.
References LogFieldIp6::_addr, LogFieldIp4::_addr, LogFieldIp::_family, ats_ip4_set(), ats_ip6_set(), ats_ip_invalidate(), INK_ALIGN_DEFAULT, and ink_assert.
Referenced by unmarshal_ip_to_hex(), and unmarshal_ip_to_str().
int LogAccess::unmarshal_ip_to_hex | ( | char ** | buf, | |
char * | dest, | |||
int | len | |||
) | [static] |
Definition at line 1239 of file LogAccess.cc.
References ats_ip_to_hex(), ats_is_ip(), IpEndpoint::sa, and unmarshal_ip().
Referenced by Log::init_fields().
int LogAccess::unmarshal_ip_to_str | ( | char ** | buf, | |
char * | dest, | |||
int | len | |||
) | [static] |
Definition at line 1213 of file LogAccess.cc.
References ats_ip_ntop(), ats_is_ip(), strlen(), and unmarshal_ip().
Referenced by Log::init_fields().
int LogAccess::unmarshal_itoa | ( | int64_t | val, | |
char * | dest, | |||
int | field_width = 0 , |
|||
char | leading_char = ' ' | |||
) | [static] |
Definition at line 898 of file LogAccess.cc.
References ink_assert.
Referenced by unmarshal_http_status(), and unmarshal_int_to_str().
int LogAccess::unmarshal_itox | ( | int64_t | val, | |
char * | dest, | |||
int | field_width = 0 , |
|||
char | leading_char = ' ' | |||
) | [static] |
Definition at line 932 of file LogAccess.cc.
References ink_assert.
Referenced by unmarshal_int_to_str_hex().
int LogAccess::unmarshal_record | ( | char ** | buf, | |
char * | dest, | |||
int | len | |||
) | [static] |
Definition at line 1337 of file LogAccess.cc.
References ink_assert, memcpy, and strlen().
int LogAccess::unmarshal_str | ( | char ** | buf, | |
char * | dest, | |||
int | len, | |||
LogSlice * | slice = NULL | |||
) | [static] |
Definition at line 1010 of file LogAccess.cc.
References ink_assert, LogSlice::m_enable, memcpy, strlen(), and LogSlice::toStrOffset().
Referenced by Log::init_fields(), LogField::LogField(), LogField::unmarshal(), and unmarshal_http_text().
int LogAccess::unmarshal_ttmsf | ( | char ** | buf, | |
char * | dest, | |||
int | len | |||
) | [static] |
Definition at line 1043 of file LogAccess.cc.
References ink_assert, unmarshal_int(), and val.
Referenced by Log::init_fields().
int LogAccess::unmarshal_with_map | ( | int64_t | code, | |
char * | dest, | |||
int | len, | |||
Ptr< LogFieldAliasMap > | map, | |||
const char * | msg = 0 | |||
) | [inline, static] |
Definition at line 841 of file LogAccess.cc.
References LogFieldAliasMap::BUFFER_TOO_SMALL, ink_strlcpy(), and LogFieldAliasMap::INVALID_INT.
Referenced by unmarshal_cache_code(), unmarshal_cache_write_code(), unmarshal_entry_type(), unmarshal_finish_status(), and unmarshal_hierarchy().
Definition at line 321 of file LogAccess.h.
Referenced by init().