void
main (int argc, char **argv)
{
pcap_t *fp;
char errbuf[PCAP_ERRBUF_SIZE];
int i;
int j;
int nstreams;
int cnt;
int tdelay;
char iface[32];
int patternlen;
int opt;
struct timeval tstart;
struct timeval t;
struct timeval tint;
int pdone;
int pbusy;
iface[0] = 0;
patternlen = 0;
nstreams = 0;
tdelay = 0;
while ((opt = getopt (argc, argv, "i:t:c:p:")) != -1)
{
switch (opt)
{
case 'i':
strncpy (iface, optarg, 32);
break;