Home | History | Annotate | Download | only in ip

Lines Matching refs:opt

148 		char *opt = argv[1];
149 if (strcmp(opt,"--") == 0) {
153 if (opt[0] != '-')
155 if (opt[1] == '-')
156 opt++;
157 if (matches(opt, "-family") == 0) {
176 } else if (strcmp(opt, "-4") == 0) {
178 } else if (strcmp(opt, "-6") == 0) {
180 } else if (strcmp(opt, "-0") == 0) {
182 } else if (strcmp(opt, "-I") == 0) {
184 } else if (strcmp(opt, "-D") == 0) {
186 } else if (matches(opt, "-stats") == 0 ||
187 matches(opt, "-statistics") == 0) {
189 } else if (matches(opt, "-details") == 0) {
191 } else if (matches(opt, "-resolve") == 0) {
193 } else if (matches(opt, "-oneline") == 0) {
195 } else if (matches(opt, "-timestamp") == 0) {
198 } else if (matches(opt, "-numeric") == 0) {
201 } else if (matches(opt, "-Version") == 0) {
204 } else if (matches(opt, "-force") == 0) {
206 } else if (matches(opt, "-batch") == 0) {
212 } else if (matches(opt, "-rcvbuf") == 0) {
225 } else if (matches(opt, "-help") == 0) {
228 fprintf(stderr, "Option \"%s\" is unknown, try \"ip -help\".\n", opt);