Lines Matching refs:argv
67 main(int argc, char **argv)
79 if (matches(argv[1], "-family") == 0) {
81 argv++;
84 if (strcmp(argv[1], "inet") == 0)
86 else if (strcmp(argv[1], "inet6") == 0)
88 else if (strcmp(argv[1], "link") == 0)
90 else if (strcmp(argv[1], "help") == 0)
93 fprintf(stderr, "Protocol ID \"%s\" is unknown, try \"rtmon help\".\n", argv[1]);
96 } else if (strcmp(argv[1], "-4") == 0) {
98 } else if (strcmp(argv[1], "-6") == 0) {
100 } else if (strcmp(argv[1], "-0") == 0) {
102 } else if (matches(argv[1], "-Version") == 0) {
105 } else if (matches(argv[1], "file") == 0) {
107 argv++;
110 file = argv[1];
111 } else if (matches(argv[1], "link") == 0) {
114 } else if (matches(argv[1], "address") == 0) {
117 } else if (matches(argv[1], "route") == 0) {
120 } else if (strcmp(argv[1], "all") == 0) {
122 } else if (matches(argv[1], "help") == 0) {
125 fprintf(stderr, "Argument \"%s\" is unknown, try \"rtmon help\".\n", argv[1]);
128 argc--; argv++;