当第三方设备回注的数据包不是g_vxlan封装格式时,仅进行fielstat计数,不打印错误日志
This commit is contained in:
@@ -905,7 +905,7 @@ static enum inject_pkt_action handle_inject_packet(struct packet_io *handle, mar
|
|||||||
*action_bytes = 0;
|
*action_bytes = 0;
|
||||||
if (g_vxlan_decode(&g_vxlan_hdr, raw_data, raw_len) == -1)
|
if (g_vxlan_decode(&g_vxlan_hdr, raw_data, raw_len) == -1)
|
||||||
{
|
{
|
||||||
LOG_ERROR("%s: unexpected inject packet, not a vxlan-encapsulated packet, drop !!!", LOG_TAG_PKTIO);
|
// LOG_ERROR("%s: unexpected inject packet, not a vxlan-encapsulated packet, drop !!!", LOG_TAG_PKTIO);
|
||||||
marsio_buff_free(handle->instance, &rx_buff, 1, 0, thread_seq);
|
marsio_buff_free(handle->instance, &rx_buff, 1, 0, thread_seq);
|
||||||
*action_bytes = raw_len;
|
*action_bytes = raw_len;
|
||||||
return INJT_PKT_ERR_DROP;
|
return INJT_PKT_ERR_DROP;
|
||||||
@@ -1271,7 +1271,7 @@ static int forward_all_sf_packet_to_nf(struct packet_io *handle, marsio_buff_t *
|
|||||||
|
|
||||||
if (g_vxlan_decode(&g_vxlan_hdr, raw_data, raw_len) == -1)
|
if (g_vxlan_decode(&g_vxlan_hdr, raw_data, raw_len) == -1)
|
||||||
{
|
{
|
||||||
LOG_ERROR("%s: unexpected inject packet, not a vxlan-encapsulated packet, drop !!!", LOG_TAG_PKTIO);
|
// LOG_ERROR("%s: unexpected inject packet, not a vxlan-encapsulated packet, drop !!!", LOG_TAG_PKTIO);
|
||||||
marsio_buff_free(handle->instance, &rx_buff, 1, 0, thread_seq);
|
marsio_buff_free(handle->instance, &rx_buff, 1, 0, thread_seq);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user