t in_addr *newgw, int *psize); /* PCAP */ void signaler(int sig); /* the main function */ int main(int argc, char **argv) { char option; extern char *optarg; u_char *icp; int icl; memset(&cfg,0,sizeof(cfg)); cfg.delay=DEFAULT_DELAY; cfg.flood=1; cfg.code=0xFF; while ((option=getopt(argc,argv,"vfc:i:S:G:D:w:"))!=EOF) { switch (option) { case 'v': /* verbose */ cfg.verbose++; break; case 'f': cfg.flood=0; break; case 'i': /* local network device */ cfg.device=smalloc(strlen(optarg)+1); strcpy(cfg.device,optarg); break; break; case 'S': /* spoof source */页码:[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] 第7页、共10页 |