Lines Matching refs:rtnl_route
72 struct rtnl_route *r = (struct rtnl_route *) c; in route_constructor()
86 struct rtnl_route *r = (struct rtnl_route *) c; in route_free_data()
104 struct rtnl_route *dst = (struct rtnl_route *) _dst; in route_clone()
105 struct rtnl_route *src = (struct rtnl_route *) _src; in route_clone()
137 struct rtnl_route *r = (struct rtnl_route *) a; in route_dump_line()
214 struct rtnl_route *r = (struct rtnl_route *) a; in route_dump_details()
292 struct rtnl_route *route = (struct rtnl_route *) obj; in route_dump_stats()
310 struct rtnl_route *route = (struct rtnl_route *) obj; in route_keygen()
358 struct rtnl_route *route = (struct rtnl_route *)obj; in route_id_attrs_get()
372 struct rtnl_route *a = (struct rtnl_route *) _a; in route_compare()
373 struct rtnl_route *b = (struct rtnl_route *) _b; in route_compare()
477 struct rtnl_route *new_route = (struct rtnl_route *) new_obj; in route_update()
478 struct rtnl_route *old_route = (struct rtnl_route *) old_obj; in route_update()
605 struct rtnl_route *rtnl_route_alloc(void) in rtnl_route_alloc()
607 return (struct rtnl_route *) nl_object_alloc(&route_obj_ops); in rtnl_route_alloc()
610 void rtnl_route_get(struct rtnl_route *route) in rtnl_route_get()
615 void rtnl_route_put(struct rtnl_route *route) in rtnl_route_put()
627 void rtnl_route_set_table(struct rtnl_route *route, uint32_t table) in rtnl_route_set_table()
633 uint32_t rtnl_route_get_table(struct rtnl_route *route) in rtnl_route_get_table()
638 void rtnl_route_set_scope(struct rtnl_route *route, uint8_t scope) in rtnl_route_set_scope()
644 uint8_t rtnl_route_get_scope(struct rtnl_route *route) in rtnl_route_get_scope()
649 void rtnl_route_set_tos(struct rtnl_route *route, uint8_t tos) in rtnl_route_set_tos()
655 uint8_t rtnl_route_get_tos(struct rtnl_route *route) in rtnl_route_get_tos()
660 void rtnl_route_set_protocol(struct rtnl_route *route, uint8_t protocol) in rtnl_route_set_protocol()
666 uint8_t rtnl_route_get_protocol(struct rtnl_route *route) in rtnl_route_get_protocol()
671 void rtnl_route_set_priority(struct rtnl_route *route, uint32_t prio) in rtnl_route_set_priority()
677 uint32_t rtnl_route_get_priority(struct rtnl_route *route) in rtnl_route_get_priority()
682 int rtnl_route_set_family(struct rtnl_route *route, uint8_t family) in rtnl_route_set_family()
697 uint8_t rtnl_route_get_family(struct rtnl_route *route) in rtnl_route_get_family()
702 int rtnl_route_set_dst(struct rtnl_route *route, struct nl_addr *addr) in rtnl_route_set_dst()
721 struct nl_addr *rtnl_route_get_dst(struct rtnl_route *route) in rtnl_route_get_dst()
726 int rtnl_route_set_src(struct rtnl_route *route, struct nl_addr *addr) in rtnl_route_set_src()
747 struct nl_addr *rtnl_route_get_src(struct rtnl_route *route) in rtnl_route_get_src()
752 int rtnl_route_set_type(struct rtnl_route *route, uint8_t type) in rtnl_route_set_type()
763 uint8_t rtnl_route_get_type(struct rtnl_route *route) in rtnl_route_get_type()
768 void rtnl_route_set_flags(struct rtnl_route *route, uint32_t flags) in rtnl_route_set_flags()
775 void rtnl_route_unset_flags(struct rtnl_route *route, uint32_t flags) in rtnl_route_unset_flags()
782 uint32_t rtnl_route_get_flags(struct rtnl_route *route) in rtnl_route_get_flags()
787 int rtnl_route_set_metric(struct rtnl_route *route, int metric, uint32_t value) in rtnl_route_set_metric()
804 int rtnl_route_unset_metric(struct rtnl_route *route, int metric) in rtnl_route_unset_metric()
817 int rtnl_route_get_metric(struct rtnl_route *route, int metric, uint32_t *value) in rtnl_route_get_metric()
831 int rtnl_route_set_pref_src(struct rtnl_route *route, struct nl_addr *addr) in rtnl_route_set_pref_src()
849 struct nl_addr *rtnl_route_get_pref_src(struct rtnl_route *route) in rtnl_route_get_pref_src()
854 void rtnl_route_set_iif(struct rtnl_route *route, int ifindex) in rtnl_route_set_iif()
860 int rtnl_route_get_iif(struct rtnl_route *route) in rtnl_route_get_iif()
865 void rtnl_route_add_nexthop(struct rtnl_route *route, struct rtnl_nexthop *nh) in rtnl_route_add_nexthop()
872 void rtnl_route_remove_nexthop(struct rtnl_route *route, struct rtnl_nexthop *nh) in rtnl_route_remove_nexthop()
880 struct nl_list_head *rtnl_route_get_nexthops(struct rtnl_route *route) in rtnl_route_get_nexthops()
888 int rtnl_route_get_nnexthops(struct rtnl_route *route) in rtnl_route_get_nnexthops()
896 void rtnl_route_foreach_nexthop(struct rtnl_route *r, in rtnl_route_foreach_nexthop()
909 struct rtnl_nexthop *rtnl_route_nexthop_n(struct rtnl_route *r, int n) in rtnl_route_nexthop_n()
924 void rtnl_route_set_ttl_propagate(struct rtnl_route *route, uint8_t ttl_prop) in rtnl_route_set_ttl_propagate()
930 int rtnl_route_get_ttl_propagate(struct rtnl_route *route) in rtnl_route_get_ttl_propagate()
959 int rtnl_route_guess_scope(struct rtnl_route *route) in rtnl_route_guess_scope()
1023 static int parse_multipath(struct rtnl_route *route, struct nlattr *attr) in parse_multipath()
1119 int rtnl_route_parse(struct nlmsghdr *nlh, struct rtnl_route **result) in rtnl_route_parse()
1122 struct rtnl_route *route; in rtnl_route_parse()
1349 int rtnl_route_build_msg(struct nl_msg *msg, struct rtnl_route *route) in rtnl_route_build_msg()
1491 .oo_size = sizeof(struct rtnl_route),