| 1099 | } |
| 1100 | |
| 1101 | int |
| 1102 | iperf_parse_arguments(struct iperf_test *test, int argc, char **argv) |
| 1103 | { |
| 1104 | static struct option longopts[] = |
| 1105 | { |
| 1106 | {"port", required_argument, NULL, 'p'}, |
| 1107 | {"format", required_argument, NULL, 'f'}, |
| 1108 | {"interval", required_argument, NULL, 'i'}, |
| 1109 | {"daemon", no_argument, NULL, 'D'}, |
| 1110 | {"one-off", no_argument, NULL, '1'}, |
| 1111 | {"verbose", no_argument, NULL, 'V'}, |
| 1112 | {"json", no_argument, NULL, 'J'}, |
| 1113 | {"json-stream", no_argument, NULL, OPT_JSON_STREAM}, |
| 1114 | {"json-stream-full-output", no_argument, NULL, OPT_JSON_STREAM_FULL_OUTPUT}, |
| 1115 | {"version", no_argument, NULL, 'v'}, |
| 1116 | {"server", no_argument, NULL, 's'}, |
| 1117 | {"client", required_argument, NULL, 'c'}, |
| 1118 | {"udp", no_argument, NULL, 'u'}, |
| 1119 | {"bitrate", required_argument, NULL, 'b'}, |
| 1120 | {"bandwidth", required_argument, NULL, 'b'}, |
| 1121 | {"server-bitrate-limit", required_argument, NULL, OPT_SERVER_BITRATE_LIMIT}, |
| 1122 | {"server-max-duration", required_argument, NULL, OPT_SERVER_MAX_DURATION}, |
| 1123 | {"time", required_argument, NULL, 't'}, |
| 1124 | {"bytes", required_argument, NULL, 'n'}, |
| 1125 | {"blockcount", required_argument, NULL, 'k'}, |
| 1126 | {"length", required_argument, NULL, 'l'}, |
| 1127 | {"parallel", required_argument, NULL, 'P'}, |
| 1128 | {"reverse", no_argument, NULL, 'R'}, |
| 1129 | {"bidir", no_argument, NULL, OPT_BIDIRECTIONAL}, |
| 1130 | {"window", required_argument, NULL, 'w'}, |
| 1131 | {"bind", required_argument, NULL, 'B'}, |
| 1132 | #if defined(CAN_BIND_TO_DEVICE) |
| 1133 | {"bind-dev", required_argument, NULL, OPT_BIND_DEV}, |
| 1134 | #endif /* CAN_BIND_TO_DEVICE */ |
| 1135 | {"cport", required_argument, NULL, OPT_CLIENT_PORT}, |
| 1136 | {"set-mss", required_argument, NULL, 'M'}, |
| 1137 | {"no-delay", no_argument, NULL, 'N'}, |
| 1138 | {"version4", no_argument, NULL, '4'}, |
| 1139 | {"version6", no_argument, NULL, '6'}, |
| 1140 | {"tos", required_argument, NULL, 'S'}, |
| 1141 | {"dscp", required_argument, NULL, OPT_DSCP}, |
| 1142 | {"extra-data", required_argument, NULL, OPT_EXTRA_DATA}, |
| 1143 | #if defined(HAVE_FLOWLABEL) |
| 1144 | {"flowlabel", required_argument, NULL, 'L'}, |
| 1145 | #endif /* HAVE_FLOWLABEL */ |
| 1146 | {"zerocopy", no_argument, NULL, 'Z'}, |
| 1147 | {"omit", required_argument, NULL, 'O'}, |
| 1148 | {"file", required_argument, NULL, 'F'}, |
| 1149 | {"repeating-payload", no_argument, NULL, OPT_REPEATING_PAYLOAD}, |
| 1150 | {"timestamps", optional_argument, NULL, OPT_TIMESTAMPS}, |
| 1151 | #if defined(HAVE_CPU_AFFINITY) |
| 1152 | {"affinity", required_argument, NULL, 'A'}, |
| 1153 | #endif /* HAVE_CPU_AFFINITY */ |
| 1154 | {"title", required_argument, NULL, 'T'}, |
| 1155 | #if defined(HAVE_TCP_CONGESTION) |
| 1156 | {"congestion", required_argument, NULL, 'C'}, |
| 1157 | {"linux-congestion", required_argument, NULL, 'C'}, |
| 1158 | #endif /* HAVE_TCP_CONGESTION */ |
no test coverage detected
searching dependent graphs…