summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorfumingwei <[email protected]>2020-09-29 17:47:13 +0800
committerfumingwei <[email protected]>2020-09-29 17:47:13 +0800
commit346cd4efedccba3c00887e169c2de88396a654e4 (patch)
treecf32337d6f3ffd3092b0a21dded4b0c5c9906027 /common
parent056d472b2d8f79734b4b1e450eefc755162bf852 (diff)
增加kni 支持fqdn共享
Diffstat (limited to 'common')
-rw-r--r--common/include/kni_cmsg.h2
-rw-r--r--common/src/kni_cmsg.cpp5
2 files changed, 7 insertions, 0 deletions
diff --git a/common/include/kni_cmsg.h b/common/include/kni_cmsg.h
index aec6e3a..74e787e 100644
--- a/common/include/kni_cmsg.h
+++ b/common/include/kni_cmsg.h
@@ -76,6 +76,8 @@ 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)
//cmsg tlv max
KNI_CMSG_TLV_NR_MAX,
};
diff --git a/common/src/kni_cmsg.cpp b/common/src/kni_cmsg.cpp
index 4ec0fde..bdc7b15 100644
--- a/common/src/kni_cmsg.cpp
+++ b/common/src/kni_cmsg.cpp
@@ -246,5 +246,10 @@ void tfe_cmsg_enum_to_string()
tfe_cmsg_tlv_type_to_string[TFE_CMSG_DST_IP_LOCATION_PROVINE] = "TFE_CMSG_DST_IP_LOCATION_PROVINE";
tfe_cmsg_tlv_type_to_string[TFE_CMSG_SRC_IP_LOCATION_CITY] = "TFE_CMSG_SRC_IP_LOCATION_CITY";
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";
+
}