Home | History | Annotate | Download | only in ip

Lines Matching refs:arg

59 int rtnl_rtntype_a2n(int *id, char *arg)
64 if (strcmp(arg, "local") == 0)
66 else if (strcmp(arg, "nat") == 0)
68 else if (matches(arg, "broadcast") == 0 ||
69 strcmp(arg, "brd") == 0)
71 else if (matches(arg, "anycast") == 0)
73 else if (matches(arg, "multicast") == 0)
75 else if (matches(arg, "prohibit") == 0)
77 else if (matches(arg, "unreachable") == 0)
79 else if (matches(arg, "blackhole") == 0)
81 else if (matches(arg, "xresolve") == 0)
83 else if (matches(arg, "unicast") == 0)
85 else if (strcmp(arg, "throw") == 0)
88 res = strtoul(arg, &end, 0);
89 if (!end || end == arg || *end || res > 255)
96 int get_rt_realms(__u32 *realms, char *arg)
99 char *p = strchr(arg, '/');
104 if (rtnl_rtrealm_a2n(realms, arg)) {
110 arg = p+1;
112 if (*arg && rtnl_rtrealm_a2n(&realm, arg))