1 Star 1 Fork 0

tangtao/latserver

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
lxz_sysloger.h 1.42 KB
一键复制 编辑 原始数据 按行查看 历史
#ifndef __LXZ_SYSLOGER_H__
#define __LXZ_SYSLOGER_H__
#define LXZ_SYSLOGGER_DEF_DIR "syslog"
#define LST_SYSLOGGER_MAX_PATH 128
#define LXZ_SYSLOGGER_MAX_CACHE 2048
typedef struct _pcap_file_header_t
{
uint32 ut_pcap_magic;
uint16 ut_ver_major;
uint16 ut_ver_minor;
uint32 ut_cur_timezone;
uint32 ut_cur_timestamp;
uint32 ut_max_snaplength;
uint32 ut_cur_linktype;
}pcap_filehdr_t;
typedef struct _pcap_packet_header_t
{
uint32 it_capture_sec;
uint32 it_capture_usec;
uint32 it_capture_len;
uint32 it_actual_len;
}pcap_packethdr_t;
typedef struct _pcap_packet_mac_t
{
uint08 pt_dst_MAC[6];
uint08 pt_src_MAC[6];
uint16 it_pl_protocol;
}pcap_packet_mac_t;
typedef struct _pcap_packet_iphdr_t
{
uint08 it_ip_VHL;
uint08 it_ip_field;
uint16 it_nb_total;
uint16 it_id_packet;
uint08 it_ip_flags;
uint08 it_ip_offset;
uint08 it_ip_TTL;
uint08 it_pl_protocol;
uint16 it_ip_checksum;
uint32 it_src_ipaddr;
uint32 it_dst_ipaddr;
}pcap_packet_iphdr_t;
typedef struct _pcap_packet_udphdr_t
{
uint16 it_src_port;
uint16 it_dst_port;
uint16 it_len_payload;
uint16 it_udp_checksum;
}pcap_packet_udphdr_t;
sint32 lxzpcap_sysloger_open(uint08* u_rel_dir);
sint32 lxzpcap_sysloger_printf(const char * vfmt, ...);
sint32 lxzpcap_sysloger_close(void);
#endif /* __LXZ_SYSLOGER_H__ */
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/cyctspace/latserver.git
git@gitee.com:cyctspace/latserver.git
cyctspace
latserver
latserver
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385