Lines Matching refs:route
24 struct rtnl_route *route; in nl_cli_route_alloc() local
26 route = rtnl_route_alloc(); in nl_cli_route_alloc()
27 if (!route) in nl_cli_route_alloc()
30 return route; in nl_cli_route_alloc()
47 void nl_cli_route_parse_family(struct rtnl_route *route, char *arg) in nl_cli_route_parse_family() argument
52 rtnl_route_set_family(route, family); in nl_cli_route_parse_family()
55 void nl_cli_route_parse_dst(struct rtnl_route *route, char *arg) in nl_cli_route_parse_dst() argument
60 addr = nl_cli_addr_parse(arg, rtnl_route_get_family(route)); in nl_cli_route_parse_dst()
61 if ((err = rtnl_route_set_dst(route, addr)) < 0) in nl_cli_route_parse_dst()
68 void nl_cli_route_parse_src(struct rtnl_route *route, char *arg) in nl_cli_route_parse_src() argument
73 addr = nl_cli_addr_parse(arg, rtnl_route_get_family(route)); in nl_cli_route_parse_src()
74 if ((err = rtnl_route_set_src(route, addr)) < 0) in nl_cli_route_parse_src()
81 void nl_cli_route_parse_pref_src(struct rtnl_route *route, char *arg) in nl_cli_route_parse_pref_src() argument
86 addr = nl_cli_addr_parse(arg, rtnl_route_get_family(route)); in nl_cli_route_parse_pref_src()
87 if ((err = rtnl_route_set_pref_src(route, addr)) < 0) in nl_cli_route_parse_pref_src()
94 void nl_cli_route_parse_metric(struct rtnl_route *route, char *subopts) in nl_cli_route_parse_metric() argument
131 if ((ret = rtnl_route_set_metric(route, ret, lval)) < 0) in nl_cli_route_parse_metric()
137 void nl_cli_route_parse_nexthop(struct rtnl_route *route, char *subopts, in nl_cli_route_parse_nexthop() argument
178 addr = nl_cli_addr_parse(arg,rtnl_route_get_family(route)); in nl_cli_route_parse_nexthop()
194 rtnl_route_add_nexthop(route, nh); in nl_cli_route_parse_nexthop()
197 void nl_cli_route_parse_table(struct rtnl_route *route, char *arg) in nl_cli_route_parse_table() argument
212 rtnl_route_set_table(route, table); in nl_cli_route_parse_table()
215 void nl_cli_route_parse_prio(struct rtnl_route *route, char *arg) in nl_cli_route_parse_prio() argument
223 rtnl_route_set_priority(route, lval); in nl_cli_route_parse_prio()
226 void nl_cli_route_parse_scope(struct rtnl_route *route, char *arg) in nl_cli_route_parse_scope() argument
233 rtnl_route_set_scope(route, ival); in nl_cli_route_parse_scope()
236 void nl_cli_route_parse_protocol(struct rtnl_route *route, char *arg) in nl_cli_route_parse_protocol() argument
253 rtnl_route_set_protocol(route, proto); in nl_cli_route_parse_protocol()
256 void nl_cli_route_parse_type(struct rtnl_route *route, char *arg) in nl_cli_route_parse_type() argument
263 if ((ival = rtnl_route_set_type(route, ival)) < 0) in nl_cli_route_parse_type()
268 void nl_cli_route_parse_iif(struct rtnl_route *route, char *arg, struct nl_cache *link_cache) in nl_cli_route_parse_iif() argument
275 rtnl_route_set_iif(route, ival); in nl_cli_route_parse_iif()