summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorfumingwei <[email protected]>2020-10-12 17:00:13 +0800
committerfumingwei <[email protected]>2020-10-12 17:00:13 +0800
commit5eb42db2751eaebcc328afd6cceb00168a3267cb (patch)
tree537ed70f8d61937d29f1083f3461e8240ce39a8a /common
parent346cd4efedccba3c00887e169c2de88396a654e4 (diff)
1、修改fqdn cmsg 枚举名称 2、增加fs stat 输出格式配置项
Diffstat (limited to 'common')
-rw-r--r--common/include/kni_cmsg.h6
-rw-r--r--common/src/kni_cmsg.cpp4
2 files changed, 6 insertions, 4 deletions
diff --git a/common/include/kni_cmsg.h b/common/include/kni_cmsg.h
index 74e787e..954fb36 100644
--- a/common/include/kni_cmsg.h
+++ b/common/include/kni_cmsg.h
@@ -76,14 +76,16 @@ enum tfe_cmsg_tlv_type
TFE_CMSG_DST_IP_LOCATION_CITY, // string max size 256
//ja3 fingerprint
TFE_CMSG_SSL_CLIENT_JA3_FINGERPRINT,
- TFE_CMSG_FQDN_NUM, // uint8_t max size 1
- TFE_CMSG_FQDN_VAL, // string max size 8 * sizeof(uint32_t)
+ //fqdn cat id
+ TFE_CMSG_FQDN_CAT_ID_NUM, // uint32_t
+ TFE_CMSG_FQDN_CAT_ID_VAL, // string max size 8 * sizeof(uint32_t)
//cmsg tlv max
KNI_CMSG_TLV_NR_MAX,
};
extern const char * tfe_cmsg_tlv_type_to_string[KNI_CMSG_TLV_NR_MAX];
+
struct kni_cmsg* kni_cmsg_init();
void kni_cmsg_destroy(struct kni_cmsg *cmsg);
int kni_cmsg_get(struct kni_cmsg *cmsg, uint16_t type, uint16_t *size, unsigned char **pvalue);
diff --git a/common/src/kni_cmsg.cpp b/common/src/kni_cmsg.cpp
index bdc7b15..3424f6d 100644
--- a/common/src/kni_cmsg.cpp
+++ b/common/src/kni_cmsg.cpp
@@ -248,8 +248,8 @@ void tfe_cmsg_enum_to_string()
tfe_cmsg_tlv_type_to_string[TFE_CMSG_DST_IP_LOCATION_CITY] = "TFE_CMSG_DST_IP_LOCATION_CITY";
tfe_cmsg_tlv_type_to_string[TFE_CMSG_SSL_CLIENT_JA3_FINGERPRINT] = "TFE_CMSG_SSL_CLIENT_JA3_FINGERPRINT";
- tfe_cmsg_tlv_type_to_string[TFE_CMSG_FQDN_NUM] = "TFE_CMSG_FQDN_NUM";
- tfe_cmsg_tlv_type_to_string[TFE_CMSG_FQDN_VAL] = "TFE_CMSG_FQDN_VAL";
+ tfe_cmsg_tlv_type_to_string[TFE_CMSG_FQDN_CAT_ID_NUM] = "TFE_CMSG_FQDN_CAT_ID_NUM";
+ tfe_cmsg_tlv_type_to_string[TFE_CMSG_FQDN_CAT_ID_VAL] = "TFE_CMSG_FQDN_CAT_ID_VAL";
}