[PACKET_IO]format code style

This commit is contained in:
liuwentan
2022-08-10 10:21:07 +08:00
parent a93ffa9078
commit e5146a6cbe
7 changed files with 25 additions and 30 deletions

View File

@@ -22,13 +22,13 @@
#include "../../../sdk/include/logger.h"
#include "../../common/time_helper.h"
/*
/**
* @brief validate path is a valid plain file or directory
*
* @retval failed (-1) successful (0),
* if success, dir == nullptr <---> means path is plain file
* dir != nullptr <---> means path is directory
**/
*/
static int validate_directory_or_file(const char *path, DIR **dir)
{
DIR *temp_dir = nullptr;
@@ -58,11 +58,11 @@ static int validate_directory_or_file(const char *path, DIR **dir)
return ret;
}
/*
/**
* @brief get the timestamp of the first packet and rewind
*
* @retval true(success), false(error)
*/
*/
static bool peek_first_packet_timestamp(struct pcap_plain_file_info *pfile_info)
{
int ret = pcap_next_ex(pfile_info->pcap_handle, &pfile_info->first_pkt_hdr,