pcap_t *pd;
int pcapfd;
static int packet_length; /* length of current packet */
int packet_length; /* length of current packet */
#define STAT_ADD(name) \
{ tcpdstat[(name)].packets++; tcpdstat[(name)].bytes += packet_length; }