char app_name[MAX_EVENT_APPNAME_LEN];
- uint32_t request_size;
- uint32_t response_size;
+ uint32_t http_request_size;
+ uint32_t http_response_size;
char http_method[MAX_HTTP_METHOD_LEN];
char http_version[MAX_HTTP_VERSION_LEN];
strncpy(u2_event.http_method,
reinterpret_cast<const char*>(buf.data), MAX_HTTP_METHOD_LEN - 1);
- if ( gadget->get_buf("request_size", p, buf) )
- u2_event.request_size = htonl(*reinterpret_cast<const uint32_t*>(buf.data));
+ if ( gadget->get_buf("http_request_size", p, buf) )
+ u2_event.http_request_size = htonl(*reinterpret_cast<const uint32_t*>(buf.data));
- if ( gadget->get_buf("response_size", p, buf) )
- u2_event.response_size = htonl(*reinterpret_cast<const uint32_t*>(buf.data));
+ if ( gadget->get_buf("http_response_size", p, buf) )
+ u2_event.http_response_size = htonl(*reinterpret_cast<const uint32_t*>(buf.data));
if ( gadget->get_buf("http_version_str", p, buf) )
strncpy(u2_event.http_version,
"js_data", \
"vba_data", \
"http_method_str", \
- "request_size", \
- "response_size", \
+ "http_request_size", \
+ "http_response_size", \
"http_version_str", \
"http_user_agent_str", \
"http_referer_str", \
HTTP_BUFFER_RAW_TRAILER, HTTP_BUFFER_RAW_URI, HTTP_BUFFER_STAT_CODE, HTTP_BUFFER_STAT_MSG,
HTTP_BUFFER_TRAILER, HTTP_BUFFER_TRUE_IP, HTTP_BUFFER_URI, HTTP_BUFFER_VERSION,
BUFFER_JS_DATA, BUFFER_VBA_DATA, HTTP__BUFFER_MAX = BUFFER_VBA_DATA,
- HTTP_BUFFER_METHOD_STR, BUFFER_REQUEST_SIZE, BUFFER_RESPONSE_SIZE,
+ HTTP_BUFFER_METHOD_STR, HTTP_BUFFER_REQUEST_SIZE, HTTP_BUFFER_RESPONSE_SIZE,
HTTP_BUFFER_VERSION_STR, HTTP_BUFFER_USER_AGENT_STR, HTTP_BUFFER_REFERER_STR,
DETAIL_119_20, DETAIL_119_287,
HTTP__TMP_BUFFER_MAX = DETAIL_119_287,
return tmp_field(get_classic_buffer(HTTP_BUFFER_METHOD, 0, 0));
}
-Field* HttpMsgSection::compute_request_size(const HttpBufferInfo&)
+Field* HttpMsgSection::compute_http_request_size(const HttpBufferInfo&)
{
uint32_t val = 0;
val += get_section_len(request);
return tmp_field(val);
}
-Field* HttpMsgSection::compute_response_size(const HttpBufferInfo&)
+Field* HttpMsgSection::compute_http_response_size(const HttpBufferInfo&)
{
uint32_t val = 0;
val += get_section_len(status);
static const ComputeFunction compute_functions[TMP_BUFFER_CNT] = {
&HttpMsgSection::compute_http_method_str, // HTTP_BUFFER_METHOD_STR
- &HttpMsgSection::compute_request_size, // BUFFER_REQUEST_SIZE
- &HttpMsgSection::compute_response_size, // BUFFER_RESPONSE_SIZE
+ &HttpMsgSection::compute_http_request_size, // HTTP_BUFFER_REQUEST_SIZE
+ &HttpMsgSection::compute_http_response_size, // HTTP_BUFFER_RESPONSE_SIZE
&HttpMsgSection::compute_http_version_str, // HTTP_BUFFER_VERSION_STR
&HttpMsgSection::compute_http_user_agent_str, // HTTP_BUFFER_USER_AGENT_STR
&HttpMsgSection::compute_http_referer_str, // HTTP_BUFFER_REFERER_STR
private:
const Field& get_tmp_buffer(const HttpBufferInfo& buf);
Field* compute_http_method_str(const HttpBufferInfo& buf);
- Field* compute_request_size(const HttpBufferInfo& buf);
- Field* compute_response_size(const HttpBufferInfo& buf);
+ Field* compute_http_request_size(const HttpBufferInfo& buf);
+ Field* compute_http_response_size(const HttpBufferInfo& buf);
Field* compute_http_version_str(const HttpBufferInfo& buf);
Field* compute_http_user_agent_str(const HttpBufferInfo& buf);
Field* compute_http_referer_str(const HttpBufferInfo& buf);
if (event.http_method[0])
printf("\tHTTP Method: %s\n", event.http_method);
- if (event.request_size)
- printf("\tRequest Size: %u\n", htonl(event.request_size));
- if (event.response_size)
- printf("\tResponse Size: %u\n", htonl(event.response_size));
+ if (event.http_request_size)
+ printf("\tHTTP Request Size: %u\n", htonl(event.http_request_size));
+ if (event.http_response_size)
+ printf("\tHTTP Response Size: %u\n", htonl(event.http_response_size));
if (event.http_version[0])
printf("\tHTTP Version: %s\n", event.http_version);
if (event.http_user_agent[0])