代码拉取完成,页面将自动刷新
#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__ */
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。