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