首先值得一提的,就是几个基本的结构体.
在pcap.h中定义的pcap_if || pcap_if_t结构体,往往是存放设备信息,设备名称的结构体.
typedef struct pcap_if pcap_if_t;
/*Item in a list of interfaces. */
struct pcap_if {
struct pcap_if *next;
char *name; /* name to hand to "pcap_open_live()" */
char *description; /* textual description of interface, or NULL */
struct pcap_addr *addresses;
bpf_u_int32 flags; /* PCAP_IF_ interface flags */};
本文介绍了在 pcap.h 中定义的 pcap_if_t 结构体,该结构体用于存放网络设备信息及其名称,并详细解释了结构体内的各个字段含义。

1784

被折叠的 条评论
为什么被折叠?



