Lines Matching refs:argv
51 int route_main(int argc, char *argv[])
60 if (argc > 2 && !strcmp(argv[1], "add")) {
61 if (!strcmp(argv[2], "default")) {
63 if (argc > 4 && !strcmp(argv[3], "dev")) {
65 rt.rt_dev = argv[4];
71 if (argc > 6 && !strcmp(argv[3], "gw") && !strcmp(argv[5], "dev")) {
73 rt.rt_dev = argv[6];
74 if (set_address(argv[4], &rt.rt_gateway)) {
82 if (argc > 7 && !strcmp(argv[2], "-net") &&
83 !strcmp(argv[4], "netmask")) {
84 if (!strcmp(argv[6], "gw")) {
86 if (set_address(argv[3], &rt.rt_dst) &&
87 set_address(argv[5], &rt.rt_genmask) &&
88 set_address(argv[7], &rt.rt_gateway)) {
92 } else if (!strcmp(argv[6], "dev")) {
94 rt.rt_dev = argv[7];
95 if (set_address(argv[3], &rt.rt_dst) &&
96 set_address(argv[5], &rt.rt_genmask)) {