Home | History | Annotate | Download | only in route

Lines Matching refs:rtnl_route

30 struct rtnl_route;
46 extern struct rtnl_route * rtnl_route_alloc(void);
47 extern void rtnl_route_put(struct rtnl_route *);
51 extern void rtnl_route_get(struct rtnl_route *);
52 extern void rtnl_route_put(struct rtnl_route *);
54 extern int rtnl_route_parse(struct nlmsghdr *, struct rtnl_route **);
55 extern int rtnl_route_build_msg(struct nl_msg *, struct rtnl_route *);
57 extern int rtnl_route_build_add_request(struct rtnl_route *, int,
59 extern int rtnl_route_add(struct nl_sock *, struct rtnl_route *, int);
60 extern int rtnl_route_build_del_request(struct rtnl_route *, int,
62 extern int rtnl_route_delete(struct nl_sock *, struct rtnl_route *, int);
64 extern void rtnl_route_set_table(struct rtnl_route *, uint32_t);
65 extern uint32_t rtnl_route_get_table(struct rtnl_route *);
66 extern void rtnl_route_set_scope(struct rtnl_route *, uint8_t);
67 extern uint8_t rtnl_route_get_scope(struct rtnl_route *);
68 extern void rtnl_route_set_tos(struct rtnl_route *, uint8_t);
69 extern uint8_t rtnl_route_get_tos(struct rtnl_route *);
70 extern void rtnl_route_set_protocol(struct rtnl_route *, uint8_t);
71 extern uint8_t rtnl_route_get_protocol(struct rtnl_route *);
72 extern void rtnl_route_set_priority(struct rtnl_route *, uint32_t);
73 extern uint32_t rtnl_route_get_priority(struct rtnl_route *);
74 extern int rtnl_route_set_family(struct rtnl_route *, uint8_t);
75 extern uint8_t rtnl_route_get_family(struct rtnl_route *);
76 extern int rtnl_route_set_type(struct rtnl_route *, uint8_t);
77 extern uint8_t rtnl_route_get_type(struct rtnl_route *);
78 extern void rtnl_route_set_flags(struct rtnl_route *, uint32_t);
79 extern void rtnl_route_unset_flags(struct rtnl_route *, uint32_t);
80 extern uint32_t rtnl_route_get_flags(struct rtnl_route *);
81 extern int rtnl_route_set_metric(struct rtnl_route *, int, unsigned int);
82 extern int rtnl_route_unset_metric(struct rtnl_route *, int);
83 extern int rtnl_route_get_metric(struct rtnl_route *, int, uint32_t *);
84 extern int rtnl_route_set_dst(struct rtnl_route *, struct nl_addr *);
85 extern struct nl_addr *rtnl_route_get_dst(struct rtnl_route *);
86 extern int rtnl_route_set_src(struct rtnl_route *, struct nl_addr *);
87 extern struct nl_addr *rtnl_route_get_src(struct rtnl_route *);
88 extern int rtnl_route_set_pref_src(struct rtnl_route *, struct nl_addr *);
89 extern struct nl_addr *rtnl_route_get_pref_src(struct rtnl_route *);
90 extern void rtnl_route_set_iif(struct rtnl_route *, int);
91 extern int rtnl_route_get_iif(struct rtnl_route *);
92 extern int rtnl_route_get_src_len(struct rtnl_route *);
94 extern void rtnl_route_add_nexthop(struct rtnl_route *,
96 extern void rtnl_route_remove_nexthop(struct rtnl_route *,
98 extern struct nl_list_head *rtnl_route_get_nexthops(struct rtnl_route *);
99 extern int rtnl_route_get_nnexthops(struct rtnl_route *);
101 extern void rtnl_route_foreach_nexthop(struct rtnl_route *r,
105 extern struct rtnl_nexthop * rtnl_route_nexthop_n(struct rtnl_route *r, int n);
107 extern int rtnl_route_guess_scope(struct rtnl_route *);