diff options
| author | liuxueli <[email protected]> | 2023-06-25 10:33:23 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2023-06-25 10:33:23 +0800 |
| commit | 72640e6a20063a3537ba9d3af5ea1e81ab77c0b7 (patch) | |
| tree | 188c59d899ff29a48b47bb0351b037dab6262511 | |
| parent | 653879eb95fcaf8ab17cf33b915ac84546dc0b8f (diff) | |
TSG-15672: 修复笔误导致MAC地址填写异常v5.8.18
| -rw-r--r-- | bin/tsg_log_field.conf | 8 | ||||
| -rw-r--r-- | src/tsg_send_log.cpp | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/bin/tsg_log_field.conf b/bin/tsg_log_field.conf index 4ce04ce..36c4037 100644 --- a/bin/tsg_log_field.conf +++ b/bin/tsg_log_field.conf @@ -120,7 +120,7 @@ STRING dtls_sni 107 STRING common_tunnel_endpoint_a_desc 108 STRING common_tunnel_endpoint_b_desc 109 LONG common_t_vsys_id 110 -LONG common_incoming_source_mac 111 -LONG common_incoming_destination_mac 112 -LONG common_outgoing_source_mac 113 -LONG common_outgoing_destination_mac 114
\ No newline at end of file +STRING common_incoming_source_mac 111 +STRING common_incoming_destination_mac 112 +STRING common_outgoing_source_mac 113 +STRING common_outgoing_destination_mac 114
\ No newline at end of file diff --git a/src/tsg_send_log.cpp b/src/tsg_send_log.cpp index 8b6789d..04316b2 100644 --- a/src/tsg_send_log.cpp +++ b/src/tsg_send_log.cpp @@ -978,7 +978,7 @@ int direction_I2E(struct tsg_log_instance_t *_instance, struct TLD_handle_t *_ha mac_to_string(mac_addr->mac->src_addr.h_source, src_mac_string); TLD_append(_handle, _instance->id2field[LOG_COMMON_OUTCOMING_SRC_MAC].name, (void *)src_mac_string, TLD_TYPE_STRING); mac_to_string(mac_addr->mac->src_addr.h_dest, dst_mac_string); - TLD_append(_handle, _instance->id2field[LOG_COMMON_INCOMING_DST_MAC].name, (void *)dst_mac_string, TLD_TYPE_STRING); + TLD_append(_handle, _instance->id2field[LOG_COMMON_OUTCOMING_DST_MAC].name, (void *)dst_mac_string, TLD_TYPE_STRING); if((memcmp(mac_addr->mac->dst_addr.h_source, default_mac, 6))==0) { |
