[PACKET_IO]format code style
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user