if (inet_aton(optarg,&(cfg.src))==0) { fprintf(stderr, "source IP address seems to be wrong\n"); return (1); } cfg.spoof_src++; break; case 'G': /* set gw */ if (inet_aton(optarg,&(cfg.gw))==0) { fprintf(stderr, "Gateway IP address seems to be wrong\n"); return (1); } break; case 'D': /* dest address */ if (inet_aton(optarg,&(cfg.dest))==0) { fprintf(stderr, "dest IP address seems to be wrong\n"); return (1); } break; case 'w': cfg.delay=atoi(optarg); break; case 'c': cfg.code=atoi(optarg); break;<页码:[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] 第8页、共10页 |