Lines Matching refs:rtnl_link
25 struct nl_object *link2obj(struct rtnl_link *link) in link2obj()
30 struct rtnl_link *obj2link(struct nl_object *obj) in obj2link()
32 return (struct rtnl_link *) obj; in obj2link()
35 struct rtnl_link *get_from_kernel(struct nl_sock *sk, int ifindex, const char *name) in get_from_kernel()
37 struct rtnl_link *link; in get_from_kernel()
43 uint32_t inet_get_conf(struct rtnl_link *link, const unsigned int id) in inet_get_conf()
54 extern struct nl_object *link2obj(struct rtnl_link *);
55 extern struct rtnl_link *obj2link(struct nl_object *);
65 extern struct rtnl_link *rtnl_link_alloc(void);
67 extern struct rtnl_link *rtnl_link_get(struct nl_cache *, int);
68 extern struct rtnl_link *rtnl_link_get_by_name(struct nl_cache *, const char *);
70 extern int rtnl_link_build_add_request(struct rtnl_link *, int, struct nl_msg **);
71 extern int rtnl_link_add(struct nl_sock *, struct rtnl_link *, int);
72 extern int rtnl_link_build_change_request(struct rtnl_link *, struct rtnl_link *, int, struct nl_ms…
73 extern int rtnl_link_change(struct nl_sock *, struct rtnl_link *, struct rtnl_link *, int);
75 extern int rtnl_link_build_delete_request(const struct rtnl_link *, struct nl_msg **);
76 extern int rtnl_link_delete(struct nl_sock *, const struct rtnl_link *);
94 extern void rtnl_link_set_qdisc(struct rtnl_link *, const char *);
95 extern char *rtnl_link_get_qdisc(struct rtnl_link *);
97 extern void rtnl_link_set_name(struct rtnl_link *, const char *);
98 extern char *rtnl_link_get_name(struct rtnl_link *);
100 extern void rtnl_link_set_flags(struct rtnl_link *, unsigned int);
101 extern void rtnl_link_unset_flags(struct rtnl_link *, unsigned int);
102 extern unsigned int rtnl_link_get_flags(struct rtnl_link *);
104 extern void rtnl_link_set_mtu(struct rtnl_link *, unsigned int);
105 extern unsigned int rtnl_link_get_mtu(struct rtnl_link *);
107 extern void rtnl_link_set_txqlen(struct rtnl_link *, unsigned int);
108 extern unsigned int rtnl_link_get_txqlen(struct rtnl_link *);
110 extern void rtnl_link_set_ifindex(struct rtnl_link *, int);
111 extern int rtnl_link_get_ifindex(struct rtnl_link *);
113 extern void rtnl_link_set_family(struct rtnl_link *, int);
114 extern int rtnl_link_get_family(struct rtnl_link *);
116 extern void rtnl_link_set_arptype(struct rtnl_link *, unsigned int);
117 extern unsigned int rtnl_link_get_arptype(struct rtnl_link *);
119 extern void rtnl_link_set_addr(struct rtnl_link *, struct nl_addr *);
120 extern struct nl_addr *rtnl_link_get_addr(struct rtnl_link *);
122 extern void rtnl_link_set_broadcast(struct rtnl_link *, struct nl_addr *);
123 extern struct nl_addr *rtnl_link_get_broadcast(struct rtnl_link *);
125 extern void rtnl_link_set_link(struct rtnl_link *, int);
126 extern int rtnl_link_get_link(struct rtnl_link *);
128 extern void rtnl_link_set_master(struct rtnl_link *, int);
129 extern int rtnl_link_get_master(struct rtnl_link *);
131 extern void rtnl_link_set_operstate(struct rtnl_link *, uint8_t);
132 extern uint8_t rtnl_link_get_operstate(struct rtnl_link *);
134 extern void rtnl_link_set_linkmode(struct rtnl_link *, uint8_t);
135 extern uint8_t rtnl_link_get_linkmode(struct rtnl_link *);
137 extern const char *rtnl_link_get_ifalias(struct rtnl_link *);
138 extern void rtnl_link_set_ifalias(struct rtnl_link *, const char *);
140 extern int rtnl_link_get_num_vf(struct rtnl_link *, uint32_t *);
142 extern uint64_t rtnl_link_get_stat(struct rtnl_link *, int);
143 extern int rtnl_link_set_stat(struct rtnl_link *, const unsigned int, const uint64_t);
145 extern int rtnl_link_set_type(struct rtnl_link *, const char *);
146 extern char *rtnl_link_get_type(struct rtnl_link *);
148 extern int rtnl_link_enslave(struct nl_sock * sock, struct rtnl_link * master, struct rtnl_link * s…
149 extern int rtnl_link_release(struct nl_sock * sock, struct rtnl_link * slave);
165 extern int rtnl_link_vlan_set_id(struct rtnl_link *, int);
166 extern int rtnl_link_vlan_get_id(struct rtnl_link *);
168 extern int rtnl_link_vlan_set_flags(struct rtnl_link *, unsigned int);
169 extern int rtnl_link_vlan_unset_flags(struct rtnl_link *, unsigned int);
170 extern unsigned int rtnl_link_vlan_get_flags(struct rtnl_link *);
172 extern int rtnl_link_vlan_set_ingress_map(struct rtnl_link *, int, uint32_t);
173 extern uint32_t *rtnl_link_vlan_get_ingress_map(struct rtnl_link *);
175 extern int rtnl_link_vlan_set_egress_map(struct rtnl_link *, uint32_t, int);
176 extern struct vlan_map *rtnl_link_vlan_get_egress_map(struct rtnl_link *, int *);
181 extern struct rtnl_link *rtnl_link_macvlan_alloc(void);
182 extern int rtnl_link_is_macvlan(struct rtnl_link *);
187 extern int rtnl_link_macvlan_set_mode(struct rtnl_link *, uint32_t);
188 extern uint32_t rtnl_link_macvlan_get_mode(struct rtnl_link *);
189 extern int rtnl_link_macvlan_set_flags(struct rtnl_link *, uint16_t);
190 extern int rtnl_link_macvlan_unset_flags(struct rtnl_link *, uint16_t);
191 extern uint16_t rtnl_link_macvlan_get_flags(struct rtnl_link *);
197 extern struct rtnl_link *rtnl_link_vxlan_alloc(void);
199 extern int rtnl_link_is_vxlan(struct rtnl_link *);
201 extern int rtnl_link_vxlan_set_id(struct rtnl_link *, uint32_t);
202 extern int rtnl_link_vxlan_get_id(struct rtnl_link *, uint32_t *);
204 extern int rtnl_link_vxlan_set_group(struct rtnl_link *, struct nl_addr *);
205 extern int rtnl_link_vxlan_get_group(struct rtnl_link *, struct nl_addr **);
207 extern int rtnl_link_vxlan_set_link(struct rtnl_link *, uint32_t);
208 extern int rtnl_link_vxlan_get_link(struct rtnl_link *, uint32_t *);
210 extern int rtnl_link_vxlan_set_local(struct rtnl_link *, struct nl_addr *);
211 extern int rtnl_link_vxlan_get_local(struct rtnl_link *, struct nl_addr **);
213 extern int rtnl_link_vxlan_set_ttl(struct rtnl_link *, uint8_t);
214 extern int rtnl_link_vxlan_get_ttl(struct rtnl_link *);
216 extern int rtnl_link_vxlan_set_tos(struct rtnl_link *, uint8_t);
217 extern int rtnl_link_vxlan_get_tos(struct rtnl_link *);
219 extern int rtnl_link_vxlan_set_learning(struct rtnl_link *, uint8_t);
220 extern int rtnl_link_vxlan_get_learning(struct rtnl_link *);
221 extern int rtnl_link_vxlan_enable_learning(struct rtnl_link *);
222 extern int rtnl_link_vxlan_disable_learning(struct rtnl_link *);
224 extern int rtnl_link_vxlan_set_ageing(struct rtnl_link *, uint32_t);
225 extern int rtnl_link_vxlan_get_ageing(struct rtnl_link *, uint32_t *);
227 extern int rtnl_link_vxlan_set_limit(struct rtnl_link *, uint32_t);
228 extern int rtnl_link_vxlan_get_limit(struct rtnl_link *, uint32_t *);
230 extern int rtnl_link_vxlan_set_port_range(struct rtnl_link *,
232 extern int rtnl_link_vxlan_get_port_range(struct rtnl_link *,
235 extern int rtnl_link_vxlan_set_proxy(struct rtnl_link *, uint8_t);
236 extern int rtnl_link_vxlan_get_proxy(struct rtnl_link *);
237 extern int rtnl_link_vxlan_enable_proxy(struct rtnl_link *);
238 extern int rtnl_link_vxlan_disable_proxy(struct rtnl_link *);
240 extern int rtnl_link_vxlan_set_rsc(struct rtnl_link *, uint8_t);
241 extern int rtnl_link_vxlan_get_rsc(struct rtnl_link *);
242 extern int rtnl_link_vxlan_enable_rsc(struct rtnl_link *);
243 extern int rtnl_link_vxlan_disable_rsc(struct rtnl_link *);
245 extern int rtnl_link_vxlan_set_l2miss(struct rtnl_link *, uint8_t);
246 extern int rtnl_link_vxlan_get_l2miss(struct rtnl_link *);
247 extern int rtnl_link_vxlan_enable_l2miss(struct rtnl_link *);
248 extern int rtnl_link_vxlan_disable_l2miss(struct rtnl_link *);
250 extern int rtnl_link_vxlan_set_l3miss(struct rtnl_link *, uint8_t);
251 extern int rtnl_link_vxlan_get_l3miss(struct rtnl_link *);
252 extern int rtnl_link_vxlan_enable_l3miss(struct rtnl_link *);
253 extern int rtnl_link_vxlan_disable_l3miss(struct rtnl_link *);
264 extern int rtnl_link_is_bridge(struct rtnl_link *);
265 extern int rtnl_link_bridge_has_ext_info(struct rtnl_link *);
267 extern int rtnl_link_bridge_set_port_state(struct rtnl_link *, uint8_t );
268 extern int rtnl_link_bridge_get_port_state(struct rtnl_link *);
270 extern int rtnl_link_bridge_set_priority(struct rtnl_link *, uint16_t);
271 extern int rtnl_link_bridge_get_priority(struct rtnl_link *);
273 extern int rtnl_link_bridge_set_cost(struct rtnl_link *, uint32_t);
274 extern int rtnl_link_bridge_get_cost(struct rtnl_link *, uint32_t *);
276 extern int rtnl_link_bridge_unset_flags(struct rtnl_link *, unsigned int);
277 extern int rtnl_link_bridge_set_flags(struct rtnl_link *, unsigned int);
278 extern int rtnl_link_bridge_get_flags(struct rtnl_link *);
288 extern int rtnl_link_inet_set_conf(struct rtnl_link *, const unsigned int, uint32_t);
306 extern void rtnl_tc_set_link(struct rtnl_tc *, struct rtnl_link *);
307 extern struct rtnl_link *rtnl_tc_get_link(struct rtnl_tc *);
470 extern void rtnl_addr_set_link(struct rtnl_addr *, struct rtnl_link *);
471 extern struct rtnl_link *