| 132 | } |
| 133 | |
| 134 | static void |
| 135 | print_usage(void) |
| 136 | { |
| 137 | fprintf(stdout, |
| 138 | PRINT_USAGE_START |
| 139 | "[-f <rules file>]\n" |
| 140 | "[-t <tuples file for lookup>]\n" |
| 141 | "[-n <rules number (if -f is not specified)>]\n" |
| 142 | "[-l <lookup tuples number (if -t is not specified)>]\n" |
| 143 | "[-6 <ipv6 tests>]\n" |
| 144 | "[-d <\"/\" separated rules length distribution" |
| 145 | "(if -f is not specified)>]\n" |
| 146 | "[-r <random tuples fraction to lookup" |
| 147 | "(if -t is not specified)>]\n" |
| 148 | "[-b <lookup burst size: 1-64 >]\n" |
| 149 | "[-v <verbose, print results on lookup>]\n" |
| 150 | "[-p <parallel lookup on all available cores>]\n" |
| 151 | "[-c <init sad supporting read/write concurrency>]\n", |
| 152 | config.prgname); |
| 153 | |
| 154 | } |
| 155 | |
| 156 | static int |
| 157 | get_str_num(FILE *f, int num) |