Lines Matching defs:Route
22 typedef struct Route Route;
27 struct Route {
52 LIST_FIELDS(Route, routes);
55 int route_new_static(Network *network, unsigned section, Route **ret);
56 int route_new(Route **ret);
57 void route_free(Route *route);
58 int route_configure(Route *route, Link *link, sd_netlink_message_handler_t callback);
59 int route_remove(Route *route, Link *link, sd_netlink_message_handler_t callback);
61 int route_get(Link *link, int family, union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret);
62 int route_add(Link *link, int family, union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret);
63 int route_add_foreign(Link *link, int family, union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret);
64 int route_update(Route *route, union in_addr_union *src, unsigned char src_prefixlen, union in_addr_union *gw, union in_addr_union *prefsrc, unsigned char scope, unsigned char protocol);
65 void route_drop(Route *route);
69 DEFINE_TRIVIAL_CLEANUP_FUNC(Route*, route_free);