Introduction - If you have any usage issues, please Google them yourself
include <stdlib.h>
#include <stdio.h>
#include <pcap.h>
void usage()
void dispatcher_handler(u_char*, const struct pcap_pkthdr*, const u_char*)
void main(int argc, char**argv)
{
pcap_t*fp
char errbuf[PCAP_ERRBUF_SIZE]
struct timeval st_ts
u_int netmask
struct bpf_program fcode
/* 检查命令行参数的合法性*/
if (argc != 2)
{