• Home
  • Raw
  • Download

Lines Matching full:struct

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 *);
77 extern int rtnl_link_build_get_request(int, const char *, struct nl_msg **);
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);
153 struct vlan_map
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 *,
231 struct ifla_vxlan_port_range *);
232 extern int rtnl_link_vxlan_get_port_range(struct rtnl_link *,
233 struct ifla_vxlan_port_range *);
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);
304 extern void rtnl_tc_set_ifindex(struct rtnl_tc *, int);
305 extern int rtnl_tc_get_ifindex(struct rtnl_tc *);
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 *);
308 extern void rtnl_tc_set_mtu(struct rtnl_tc *, uint32_t);
309 extern uint32_t rtnl_tc_get_mtu(struct rtnl_tc *);
310 extern void rtnl_tc_set_mpu(struct rtnl_tc *, uint32_t);
311 extern uint32_t rtnl_tc_get_mpu(struct rtnl_tc *);
312 extern void rtnl_tc_set_overhead(struct rtnl_tc *, uint32_t);
313 extern uint32_t rtnl_tc_get_overhead(struct rtnl_tc *);
314 extern void rtnl_tc_set_linktype(struct rtnl_tc *, uint32_t);
315 extern uint32_t rtnl_tc_get_linktype(struct rtnl_tc *);
316 extern void rtnl_tc_set_handle(struct rtnl_tc *, uint32_t);
317 extern uint32_t rtnl_tc_get_handle(struct rtnl_tc *);
318 extern void rtnl_tc_set_parent(struct rtnl_tc *, uint32_t);
319 extern uint32_t rtnl_tc_get_parent(struct rtnl_tc *);
320 extern int rtnl_tc_set_kind(struct rtnl_tc *, const char *);
321 extern char * rtnl_tc_get_kind(struct rtnl_tc *);
322 extern uint64_t rtnl_tc_get_stat(struct rtnl_tc *, enum rtnl_tc_stat);
336 struct nl_object *qdisc2obj(struct rtnl_qdisc *qdisc) in qdisc2obj()
341 struct rtnl_qdisc *obj2qdisc(struct nl_object *obj) in obj2qdisc()
343 return (struct rtnl_qdisc *) obj; in obj2qdisc()
346 struct nl_object *class2obj(struct rtnl_class *cl) in class2obj()
351 struct rtnl_class *obj2class(struct nl_object *obj) in obj2class()
353 return (struct rtnl_class *) obj; in obj2class()
356 struct nl_object *cls2obj(struct rtnl_cls *cls) in cls2obj()
361 struct rtnl_cls *obj2cls(struct nl_object *obj) in obj2cls()
363 return (struct rtnl_cls *) obj; in obj2cls()
366 struct rtnl_tc *obj2tc(struct nl_object *obj) in obj2tc()
371 extern struct rtnl_qdisc *
374 extern struct rtnl_qdisc *
375 rtnl_qdisc_get(struct nl_cache *, int, uint32_t);
377 extern struct rtnl_qdisc *
378 rtnl_qdisc_get_by_parent(struct nl_cache *, int, uint32_t);
380 extern int rtnl_qdisc_build_add_request(struct rtnl_qdisc *, int,
381 struct nl_msg **);
382 extern int rtnl_qdisc_add(struct nl_sock *, struct rtnl_qdisc *, int);
384 extern int rtnl_qdisc_build_update_request(struct rtnl_qdisc *,
385 struct rtnl_qdisc *,
386 int, struct nl_msg **);
388 extern int rtnl_qdisc_update(struct nl_sock *, struct rtnl_qdisc *,
389 struct rtnl_qdisc *, int);
391 extern int rtnl_qdisc_build_delete_request(struct rtnl_qdisc *,
392 struct nl_msg **);
393 extern int rtnl_qdisc_delete(struct nl_sock *, struct rtnl_qdisc *);
397 extern struct rtnl_cls *rtnl_cls_alloc(void);
398 extern void rtnl_cls_put(struct rtnl_cls *);
400 extern int rtnl_cls_add(struct nl_sock *, struct rtnl_cls *, int);
402 extern int rtnl_cls_delete(struct nl_sock *, struct rtnl_cls *,
405 extern void rtnl_cls_set_prio(struct rtnl_cls *, uint16_t);
406 extern uint16_t rtnl_cls_get_prio(struct rtnl_cls *);
408 extern void rtnl_cls_set_protocol(struct rtnl_cls *, uint16_t);
409 extern uint16_t rtnl_cls_get_protocol(struct rtnl_cls *);
413 extern uint32_t rtnl_htb_get_rate2quantum(struct rtnl_qdisc *);
414 extern int rtnl_htb_set_rate2quantum(struct rtnl_qdisc *, uint32_t);
415 extern uint32_t rtnl_htb_get_defcls(struct rtnl_qdisc *);
416 extern int rtnl_htb_set_defcls(struct rtnl_qdisc *, uint32_t);
418 extern uint32_t rtnl_htb_get_prio(struct rtnl_class *);
419 extern int rtnl_htb_set_prio(struct rtnl_class *, uint32_t);
420 extern uint32_t rtnl_htb_get_rate(struct rtnl_class *);
421 extern int rtnl_htb_set_rate(struct rtnl_class *, uint32_t);
422 extern uint32_t rtnl_htb_get_ceil(struct rtnl_class *);
423 extern int rtnl_htb_set_ceil(struct rtnl_class *, uint32_t);
424 extern uint32_t rtnl_htb_get_rbuffer(struct rtnl_class *);
425 extern int rtnl_htb_set_rbuffer(struct rtnl_class *, uint32_t);
426 extern uint32_t rtnl_htb_get_cbuffer(struct rtnl_class *);
427 extern int rtnl_htb_set_cbuffer(struct rtnl_class *, uint32_t);
428 extern uint32_t rtnl_htb_get_quantum(struct rtnl_class *);
429 extern int rtnl_htb_set_quantum(struct rtnl_class *, uint32_t);
430 extern int rtnl_htb_get_level(struct rtnl_class *);
435 struct nl_object *addr2obj(struct rtnl_addr *addr) in addr2obj()
440 struct rtnl_addr *obj2addr(struct nl_object *obj) in obj2addr()
442 return (struct rtnl_addr *) obj; in obj2addr()
446 extern struct rtnl_addr *rtnl_addr_alloc(void);
448 extern struct rtnl_addr *
449 rtnl_addr_get(struct nl_cache *, int, struct nl_addr *);
451 extern int rtnl_addr_build_add_request(struct rtnl_addr *, int,
452 struct nl_msg **);
453 extern int rtnl_addr_add(struct nl_sock *, struct rtnl_addr *, int);
455 extern int rtnl_addr_build_delete_request(struct rtnl_addr *, int,
456 struct nl_msg **);
457 extern int rtnl_addr_delete(struct nl_sock *,
458 struct rtnl_addr *, int);
464 extern int rtnl_addr_set_label(struct rtnl_addr *, const char *);
465 extern char * rtnl_addr_get_label(struct rtnl_addr *);
467 extern void rtnl_addr_set_ifindex(struct rtnl_addr *, int);
468 extern int rtnl_addr_get_ifindex(struct rtnl_addr *);
470 extern void rtnl_addr_set_link(struct rtnl_addr *, struct rtnl_link *);
471 extern struct rtnl_link *
472 rtnl_addr_get_link(struct rtnl_addr *);
473 extern void rtnl_addr_set_family(struct rtnl_addr *, int);
474 extern int rtnl_addr_get_family(struct rtnl_addr *);
476 extern void rtnl_addr_set_prefixlen(struct rtnl_addr *, int);
477 extern int rtnl_addr_get_prefixlen(struct rtnl_addr *);
479 extern void rtnl_addr_set_scope(struct rtnl_addr *, int);
480 extern int rtnl_addr_get_scope(struct rtnl_addr *);
482 extern void rtnl_addr_set_flags(struct rtnl_addr *, unsigned int);
483 extern void rtnl_addr_unset_flags(struct rtnl_addr *, unsigned int);
484 extern unsigned int rtnl_addr_get_flags(struct rtnl_addr *);
486 extern int rtnl_addr_set_local(struct rtnl_addr *,
487 struct nl_addr *);
488 extern struct nl_addr *rtnl_addr_get_local(struct rtnl_addr *);
490 extern int rtnl_addr_set_peer(struct rtnl_addr *, struct nl_addr *);
491 extern struct nl_addr *rtnl_addr_get_peer(struct rtnl_addr *);
493 extern int rtnl_addr_set_broadcast(struct rtnl_addr *, struct nl_addr *);
494 extern struct nl_addr *rtnl_addr_get_broadcast(struct rtnl_addr *);
496 extern int rtnl_addr_set_multicast(struct rtnl_addr *, struct nl_addr *);
497 extern struct nl_addr *rtnl_addr_get_multicast(struct rtnl_addr *);
499 extern int rtnl_addr_set_anycast(struct rtnl_addr *, struct nl_addr *);
500 extern struct nl_addr *rtnl_addr_get_anycast(struct rtnl_addr *);
502 extern uint32_t rtnl_addr_get_valid_lifetime(struct rtnl_addr *);
503 extern void rtnl_addr_set_valid_lifetime(struct rtnl_addr *, uint32_t);
504 extern uint32_t rtnl_addr_get_preferred_lifetime(struct rtnl_addr *);
505 extern void rtnl_addr_set_preferred_lifetime(struct rtnl_addr *, uint32_t);
506 extern uint32_t rtnl_addr_get_create_time(struct rtnl_addr *);
507 extern uint32_t rtnl_addr_get_last_update_time(struct rtnl_addr *);