Lines Matching refs:route
25 struct rtnl_route *route; in nl_cli_route_alloc() local
27 route = rtnl_route_alloc(); in nl_cli_route_alloc()
28 if (!route) in nl_cli_route_alloc()
31 return route; in nl_cli_route_alloc()
48 void nl_cli_route_parse_family(struct rtnl_route *route, char *arg) in nl_cli_route_parse_family() argument
53 rtnl_route_set_family(route, family); in nl_cli_route_parse_family()
56 void nl_cli_route_parse_dst(struct rtnl_route *route, char *arg) in nl_cli_route_parse_dst() argument
61 addr = nl_cli_addr_parse(arg, rtnl_route_get_family(route)); in nl_cli_route_parse_dst()
62 if ((err = rtnl_route_set_dst(route, addr)) < 0) in nl_cli_route_parse_dst()
69 void nl_cli_route_parse_src(struct rtnl_route *route, char *arg) in nl_cli_route_parse_src() argument
74 addr = nl_cli_addr_parse(arg, rtnl_route_get_family(route)); in nl_cli_route_parse_src()
75 if ((err = rtnl_route_set_src(route, addr)) < 0) in nl_cli_route_parse_src()
82 void nl_cli_route_parse_pref_src(struct rtnl_route *route, char *arg) in nl_cli_route_parse_pref_src() argument
87 addr = nl_cli_addr_parse(arg, rtnl_route_get_family(route)); in nl_cli_route_parse_pref_src()
88 if ((err = rtnl_route_set_pref_src(route, addr)) < 0) in nl_cli_route_parse_pref_src()
95 void nl_cli_route_parse_metric(struct rtnl_route *route, char *subopts) in nl_cli_route_parse_metric() argument
132 if ((ret = rtnl_route_set_metric(route, ret, lval)) < 0) in nl_cli_route_parse_metric()
138 void nl_cli_route_parse_nexthop(struct rtnl_route *route, char *subopts, in nl_cli_route_parse_nexthop() argument
181 if (rtnl_route_get_family(route) == AF_MPLS) { in nl_cli_route_parse_nexthop()
185 addr = nl_cli_addr_parse(arg,rtnl_route_get_family(route)); in nl_cli_route_parse_nexthop()
193 rtnl_route_get_family(route)); in nl_cli_route_parse_nexthop()
209 rtnl_route_add_nexthop(route, nh); in nl_cli_route_parse_nexthop()
212 void nl_cli_route_parse_table(struct rtnl_route *route, char *arg) in nl_cli_route_parse_table() argument
227 rtnl_route_set_table(route, table); in nl_cli_route_parse_table()
230 void nl_cli_route_parse_prio(struct rtnl_route *route, char *arg) in nl_cli_route_parse_prio() argument
238 rtnl_route_set_priority(route, lval); in nl_cli_route_parse_prio()
241 void nl_cli_route_parse_scope(struct rtnl_route *route, char *arg) in nl_cli_route_parse_scope() argument
248 rtnl_route_set_scope(route, ival); in nl_cli_route_parse_scope()
251 void nl_cli_route_parse_protocol(struct rtnl_route *route, char *arg) in nl_cli_route_parse_protocol() argument
268 rtnl_route_set_protocol(route, proto); in nl_cli_route_parse_protocol()
271 void nl_cli_route_parse_type(struct rtnl_route *route, char *arg) in nl_cli_route_parse_type() argument
278 if ((ival = rtnl_route_set_type(route, ival)) < 0) in nl_cli_route_parse_type()
283 void nl_cli_route_parse_iif(struct rtnl_route *route, char *arg, struct nl_cache *link_cache) in nl_cli_route_parse_iif() argument
290 rtnl_route_set_iif(route, ival); in nl_cli_route_parse_iif()