Lines Matching refs:optarg

375 extern char *optarg;
769 Bflag = atoi(optarg)*1024; in main()
771 error("invalid packet buffer size %s", optarg); in main()
776 cnt = atoi(optarg); in main()
778 error("invalid packet count %s", optarg); in main()
782 Cflag = atoi(optarg) * 1000000; in main()
784 error("invalid file size %s", optarg); in main()
819 gndo->ndo_espsecret = optarg; in main()
827 infile = optarg; in main()
831 Gflag = atoi(optarg); in main()
833 error("invalid number of seconds %s", optarg); in main()
854 if (optarg[0] == '0' && optarg[1] == 0) in main()
868 devnum = strtol(optarg, &end, 10); in main()
869 if (optarg != end && *end == '\0') { in main()
892 device = optarg; in main()
903 jflag = pcap_tstamp_type_name_to_val(optarg); in main()
905 error("invalid time stamp type %s", optarg); in main()
940 if (smiLoadModule(optarg) == 0) { in main()
941 error("could not load MIB module %s", optarg); in main()
946 program_name, optarg); in main()
956 sigsecret = optarg; in main()
980 if (strcasecmp(optarg, "in") == 0) in main()
982 else if (strcasecmp(optarg, "out") == 0) in main()
984 else if (strcasecmp(optarg, "inout") == 0) in main()
987 error("unknown capture direction `%s'", optarg); in main()
996 RFileName = optarg; in main()
1004 snaplen = strtol(optarg, &end, 0); in main()
1005 if (optarg == end || *end != '\0' in main()
1007 error("invalid snaplen %s", optarg); in main()
1021 if (strcasecmp(optarg, "vat") == 0) in main()
1023 else if (strcasecmp(optarg, "wb") == 0) in main()
1025 else if (strcasecmp(optarg, "rpc") == 0) in main()
1027 else if (strcasecmp(optarg, "rtp") == 0) in main()
1029 else if (strcasecmp(optarg, "rtcp") == 0) in main()
1031 else if (strcasecmp(optarg, "snmp") == 0) in main()
1033 else if (strcasecmp(optarg, "cnfp") == 0) in main()
1035 else if (strcasecmp(optarg, "tftp") == 0) in main()
1037 else if (strcasecmp(optarg, "aodv") == 0) in main()
1039 else if (strcasecmp(optarg, "carp") == 0) in main()
1041 else if (strcasecmp(optarg, "radius") == 0) in main()
1043 else if (strcasecmp(optarg, "zmtp1") == 0) in main()
1045 else if (strcasecmp(optarg, "vxlan") == 0) in main()
1047 else if (strcasecmp(optarg, "pgm") == 0) in main()
1049 else if (strcasecmp(optarg, "pgm_zmtp1") == 0) in main()
1051 else if (strcasecmp(optarg, "lmp") == 0) in main()
1054 error("unknown packet type `%s'", optarg); in main()
1072 VFileName = optarg; in main()
1076 WFileName = optarg; in main()
1080 Wflag = atoi(optarg); in main()
1082 error("invalid number of output files %s", optarg); in main()
1097 gndo->ndo_dltname = optarg; in main()
1119 if (optarg) { in main()
1120 zflag = strdup(optarg); in main()
1128 if (optarg) { in main()
1129 username = strdup(optarg); in main()