ipgrab.h

来自「该程序类似于tcpdump软件」· C头文件 代码 · 共 30 行

H
30
字号
/**************************************************************************** 
**
** File: ipgrab.h
**
** Author: Mike Borella
**
** Comments: Macros and stuff
**
*****************************************************************************/

typedef struct _ipg_stats
{
  u_int32_t pkts_rcvd;
} ipg_stats;

char *copy_argv(char **argv);

/*
 * This is a typecast to avoid stupid warning messages.  The PCAP library
 * assumes that a call to a function that parses data link layer packets
 * includes a const in the third argument.  Actually doing so is a pain
 * because it makes the higher layer protocols much harder to parse because
 * you can't assign a pointer to the packet data.  So this tricks PCAP
 * into thinking you're using the const when you really are not.
 * Bleah.
 */

typedef void (*pcap_func_t)(u_char *, const struct pcap_pkthdr *, 
			    const u_char *);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?