+static void __pcap_http_info(const u_char **packet, uint32_t *pktlen)
+{
+ GString *value;
+ gsize value_len;
+ u_char *value_pos = NULL;
+ gchar *value_str = NULL;
+
+ value_len = *pktlen;
+ value = g_string_sized_new(value_len);
+ if (value) {
+ value_pos = (u_char *)*packet;
+ while (value_len--)
+ g_string_append_printf(value, "%c", *(value_pos++));
+ value_str = g_string_free(value, FALSE);
+ }
+
+ if (STC_PCAP_LOG) {
+ STC_LOGD(HR_SINGLE "\n%s", value_str);
+ STC_LOGD(HR_SINGLE);
+ }
+
+ FREE(value_str);
+}
+
+static void __pcap_tcp_info(const u_char **packet, uint32_t *pktlen)