• Home
  • Raw
  • Download

Lines Matching full:route

16 #include <netlink/cli/route.h>
20 struct rtnl_route *route; in nl_cli_route_alloc() local
22 route = rtnl_route_alloc(); in nl_cli_route_alloc()
23 if (!route) in nl_cli_route_alloc()
24 nl_cli_fatal(ENOMEM, "Unable to allocate route object"); in nl_cli_route_alloc()
26 return route; in nl_cli_route_alloc()
35 nl_cli_fatal(err, "Unable to allocate route cache: %s\n", in nl_cli_route_alloc_cache()
43 void nl_cli_route_parse_family(struct rtnl_route *route, char *arg) in nl_cli_route_parse_family() argument
48 rtnl_route_set_family(route, family); in nl_cli_route_parse_family()
51 void nl_cli_route_parse_dst(struct rtnl_route *route, char *arg) in nl_cli_route_parse_dst() argument
56 addr = nl_cli_addr_parse(arg, rtnl_route_get_family(route)); in nl_cli_route_parse_dst()
57 if ((err = rtnl_route_set_dst(route, addr)) < 0) in nl_cli_route_parse_dst()
64 void nl_cli_route_parse_src(struct rtnl_route *route, char *arg) in nl_cli_route_parse_src() argument
69 addr = nl_cli_addr_parse(arg, rtnl_route_get_family(route)); in nl_cli_route_parse_src()
70 if ((err = rtnl_route_set_src(route, addr)) < 0) in nl_cli_route_parse_src()
77 void nl_cli_route_parse_pref_src(struct rtnl_route *route, char *arg) in nl_cli_route_parse_pref_src() argument
82 addr = nl_cli_addr_parse(arg, rtnl_route_get_family(route)); in nl_cli_route_parse_pref_src()
83 if ((err = rtnl_route_set_pref_src(route, addr)) < 0) in nl_cli_route_parse_pref_src()
90 void nl_cli_route_parse_metric(struct rtnl_route *route, char *subopts) in nl_cli_route_parse_metric() argument
127 if ((ret = rtnl_route_set_metric(route, ret, lval)) < 0) in nl_cli_route_parse_metric()
133 void nl_cli_route_parse_nexthop(struct rtnl_route *route, char *subopts, in nl_cli_route_parse_nexthop() argument
176 if (rtnl_route_get_family(route) == AF_MPLS) { in nl_cli_route_parse_nexthop()
180 addr = nl_cli_addr_parse(arg,rtnl_route_get_family(route)); in nl_cli_route_parse_nexthop()
188 rtnl_route_get_family(route)); in nl_cli_route_parse_nexthop()
204 rtnl_route_add_nexthop(route, nh); in nl_cli_route_parse_nexthop()
207 void nl_cli_route_parse_table(struct rtnl_route *route, char *arg) in nl_cli_route_parse_table() argument
222 rtnl_route_set_table(route, table); in nl_cli_route_parse_table()
225 void nl_cli_route_parse_prio(struct rtnl_route *route, char *arg) in nl_cli_route_parse_prio() argument
233 rtnl_route_set_priority(route, lval); in nl_cli_route_parse_prio()
236 void nl_cli_route_parse_scope(struct rtnl_route *route, char *arg) in nl_cli_route_parse_scope() argument
243 rtnl_route_set_scope(route, ival); in nl_cli_route_parse_scope()
246 void nl_cli_route_parse_protocol(struct rtnl_route *route, char *arg) in nl_cli_route_parse_protocol() argument
263 rtnl_route_set_protocol(route, proto); in nl_cli_route_parse_protocol()
266 void nl_cli_route_parse_type(struct rtnl_route *route, char *arg) in nl_cli_route_parse_type() argument
273 if ((ival = rtnl_route_set_type(route, ival)) < 0) in nl_cli_route_parse_type()
278 void nl_cli_route_parse_iif(struct rtnl_route *route, char *arg, struct nl_cache *link_cache) in nl_cli_route_parse_iif() argument
285 rtnl_route_set_iif(route, ival); in nl_cli_route_parse_iif()