Home
last modified time | relevance | path

Searched refs:rtnl_link (Results 1 – 25 of 72) sorted by relevance

123

/external/libnl/include/netlink/route/
Dlink.h33 struct rtnl_link;
109 extern struct rtnl_link *rtnl_link_alloc(void);
110 extern void rtnl_link_put(struct rtnl_link *);
113 extern struct rtnl_link *rtnl_link_get(struct nl_cache *, int);
114 extern struct rtnl_link *rtnl_link_get_by_name(struct nl_cache *, const char *);
117 extern int rtnl_link_build_add_request(struct rtnl_link *, int,
119 extern int rtnl_link_add(struct nl_sock *, struct rtnl_link *, int);
120 extern int rtnl_link_build_change_request(struct rtnl_link *,
121 struct rtnl_link *, int,
123 extern int rtnl_link_change(struct nl_sock *, struct rtnl_link *,
[all …]
/external/libnl/python/netlink/route/
Dcapi.i25 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);
[all …]
/external/libnl/include/netlink/route/link/
Dvxlan.h24 extern struct rtnl_link *rtnl_link_vxlan_alloc(void);
26 extern int rtnl_link_is_vxlan(struct rtnl_link *);
28 extern int rtnl_link_vxlan_set_id(struct rtnl_link *, uint32_t);
29 extern int rtnl_link_vxlan_get_id(struct rtnl_link *, uint32_t *);
31 extern int rtnl_link_vxlan_set_group(struct rtnl_link *, struct nl_addr *);
32 extern int rtnl_link_vxlan_get_group(struct rtnl_link *, struct nl_addr **);
34 extern int rtnl_link_vxlan_set_link(struct rtnl_link *, uint32_t);
35 extern int rtnl_link_vxlan_get_link(struct rtnl_link *, uint32_t *);
37 extern int rtnl_link_vxlan_set_local(struct rtnl_link *, struct nl_addr *);
38 extern int rtnl_link_vxlan_get_local(struct rtnl_link *, struct nl_addr **);
[all …]
Dcan.h23 extern int rtnl_link_is_can(struct rtnl_link *link);
28 extern int rtnl_link_can_restart(struct rtnl_link *);
29 extern int rtnl_link_can_freq(struct rtnl_link *, uint32_t *);
30 extern int rtnl_link_can_state(struct rtnl_link *, uint32_t *);
32 extern int rtnl_link_can_berr_rx(struct rtnl_link *);
33 extern int rtnl_link_can_berr_tx(struct rtnl_link *);
34 extern int rtnl_link_can_berr(struct rtnl_link *, struct can_berr_counter *);
36 extern int rtnl_link_can_get_bt_const(struct rtnl_link *,
38 extern int rtnl_link_can_get_bittiming(struct rtnl_link *,
40 extern int rtnl_link_can_set_bittiming(struct rtnl_link *,
[all …]
Dipgre.h22 extern struct rtnl_link *rtnl_link_ipgre_alloc(void);
25 extern int rtnl_link_ipgre_set_link(struct rtnl_link *link, uint32_t index);
26 extern uint32_t rtnl_link_ipgre_get_link(struct rtnl_link *link);
28 extern int rtnl_link_ipgre_set_iflags(struct rtnl_link *link, uint16_t iflags);
29 extern uint16_t rtnl_link_ipgre_get_iflags(struct rtnl_link *link);
31 extern int rtnl_link_ipgre_set_oflags(struct rtnl_link *link, uint16_t oflags);
32 extern uint16_t rtnl_link_ipgre_get_oflags(struct rtnl_link *link);
34 extern int rtnl_link_ipgre_set_ikey(struct rtnl_link *link, uint32_t ikey);
35 extern uint32_t rtnl_link_ipgre_get_ikey(struct rtnl_link *link);
37 extern int rtnl_link_ipgre_set_okey(struct rtnl_link *link, uint32_t okey);
[all …]
Dip6tnl.h22 extern struct rtnl_link *rtnl_link_ip6_tnl_alloc(void);
25 extern int rtnl_link_ip6_tnl_set_link(struct rtnl_link *link, uint32_t index);
26 extern uint32_t rtnl_link_ip6_tnl_get_link(struct rtnl_link *link);
28 extern int rtnl_link_ip6_tnl_set_local(struct rtnl_link *link, struct in6_addr *);
29 extern int rtnl_link_ip6_tnl_get_local(struct rtnl_link *link, struct in6_addr *addr);
31 extern int rtnl_link_ip6_tnl_set_remote(struct rtnl_link *link, struct in6_addr *);
32 extern int rtnl_link_ip6_tnl_get_remote(struct rtnl_link *link, struct in6_addr *);
34 extern int rtnl_link_ip6_tnl_set_ttl(struct rtnl_link *link, uint8_t ttl);
35 extern uint8_t rtnl_link_ip6_tnl_get_ttl(struct rtnl_link *link);
37 extern int rtnl_link_ip6_tnl_set_tos(struct rtnl_link *link, uint8_t tos);
[all …]
Dsit.h22 extern struct rtnl_link *rtnl_link_sit_alloc(void);
25 extern int rtnl_link_sit_set_link(struct rtnl_link *link, uint32_t index);
26 extern uint32_t rtnl_link_sit_get_link(struct rtnl_link *link);
28 extern int rtnl_link_sit_set_local(struct rtnl_link *link, uint32_t addr);
29 extern uint32_t rtnl_link_get_sit_local(struct rtnl_link *link);
31 extern int rtnl_link_sit_set_remote(struct rtnl_link *link, uint32_t addr);
32 extern uint32_t rtnl_link_sit_get_remote(struct rtnl_link *link);
34 extern int rtnl_link_sit_set_ttl(struct rtnl_link *link, uint8_t ttl);
35 extern uint8_t rtnl_link_sit_get_ttl(struct rtnl_link *link);
37 extern int rtnl_link_sit_set_tos(struct rtnl_link *link, uint8_t tos);
[all …]
Dvlan.h30 extern struct rtnl_link *rtnl_link_vlan_alloc(void);
32 extern int rtnl_link_is_vlan(struct rtnl_link *);
37 extern int rtnl_link_vlan_set_protocol(struct rtnl_link *link, uint16_t);
38 extern int rtnl_link_vlan_get_protocol(struct rtnl_link *link);
40 extern int rtnl_link_vlan_set_id(struct rtnl_link *, uint16_t);
41 extern int rtnl_link_vlan_get_id(struct rtnl_link *);
43 extern int rtnl_link_vlan_set_flags(struct rtnl_link *,
45 extern int rtnl_link_vlan_unset_flags(struct rtnl_link *,
47 extern int rtnl_link_vlan_get_flags(struct rtnl_link *);
49 extern int rtnl_link_vlan_set_ingress_map(struct rtnl_link *,
[all …]
Dipip.h22 extern struct rtnl_link *rtnl_link_ipip_alloc(void);
25 extern uint32_t rtnl_link_ipip_get_link(struct rtnl_link *link);
26 extern int rtnl_link_ipip_set_link(struct rtnl_link *link, uint32_t index);
28 extern int rtnl_link_ipip_set_local(struct rtnl_link *link, uint32_t addr);
29 extern uint32_t rtnl_link_ipip_get_local(struct rtnl_link *link);
31 extern int rtnl_link_ipip_set_remote(struct rtnl_link *link, uint32_t addr);
32 extern uint32_t rtnl_link_ipip_get_remote(struct rtnl_link *link);
34 extern int rtnl_link_ipip_set_ttl(struct rtnl_link *link, uint8_t ttl);
35 extern uint8_t rtnl_link_ipip_get_ttl(struct rtnl_link *link);
37 extern int rtnl_link_ipip_set_tos(struct rtnl_link *link, uint8_t tos);
[all …]
Dbridge.h33 extern struct rtnl_link *rtnl_link_bridge_alloc(void);
35 extern int rtnl_link_is_bridge(struct rtnl_link *);
36 extern int rtnl_link_bridge_has_ext_info(struct rtnl_link *);
38 extern int rtnl_link_bridge_set_port_state(struct rtnl_link *, uint8_t );
39 extern int rtnl_link_bridge_get_port_state(struct rtnl_link *);
41 extern int rtnl_link_bridge_set_priority(struct rtnl_link *, uint16_t);
42 extern int rtnl_link_bridge_get_priority(struct rtnl_link *);
44 extern int rtnl_link_bridge_set_cost(struct rtnl_link *, uint32_t);
45 extern int rtnl_link_bridge_get_cost(struct rtnl_link *, uint32_t *);
47 extern int rtnl_link_bridge_unset_flags(struct rtnl_link *, unsigned int);
[all …]
Dipvti.h21 extern struct rtnl_link *rtnl_link_ipvti_alloc(void);
24 extern int rtnl_link_ipvti_set_link(struct rtnl_link *link, uint32_t index);
25 extern uint32_t rtnl_link_ipvti_get_link(struct rtnl_link *link);
27 extern int rtnl_link_ipvti_set_ikey(struct rtnl_link *link, uint32_t ikey);
28 extern uint32_t rtnl_link_get_ikey(struct rtnl_link *link);
30 extern int rtnl_link_ipvti_set_okey(struct rtnl_link *link, uint32_t okey);
31 extern uint32_t rtnl_link_get_okey(struct rtnl_link *link);
33 extern int rtnl_link_ipvti_set_local(struct rtnl_link *link, uint32_t addr);
34 extern uint32_t rtnl_link_get_local(struct rtnl_link *link);
36 extern int rtnl_link_ipvti_set_remote(struct rtnl_link *link, uint32_t addr);
[all …]
Dmacvlan.h22 extern struct rtnl_link *rtnl_link_macvlan_alloc(void);
24 extern int rtnl_link_is_macvlan(struct rtnl_link *);
32 extern int rtnl_link_macvlan_set_mode(struct rtnl_link *,
34 extern uint32_t rtnl_link_macvlan_get_mode(struct rtnl_link *);
36 extern int rtnl_link_macvlan_set_flags(struct rtnl_link *,
38 extern int rtnl_link_macvlan_unset_flags(struct rtnl_link *,
40 extern uint16_t rtnl_link_macvlan_get_flags(struct rtnl_link *);
/external/libnl/include/netlink-private/route/link/
Dapi.h37 int (*io_alloc)(struct rtnl_link *);
42 int (*io_parse)(struct rtnl_link *,
48 void (*io_dump[NL_DUMP_MAX+1])(struct rtnl_link *,
53 int (*io_clone)(struct rtnl_link *, struct rtnl_link *);
57 int (*io_put_attrs)(struct nl_msg *, struct rtnl_link *);
61 void (*io_free)(struct rtnl_link *);
94 void * (*ao_alloc)(struct rtnl_link *);
98 void * (*ao_clone)(struct rtnl_link *, void *);
101 void (*ao_free)(struct rtnl_link *, void *);
105 int (*ao_parse_protinfo)(struct rtnl_link *,
[all …]
/external/libnl/lib/route/link/
Dveth.c40 static int veth_parse(struct rtnl_link *link, struct nlattr *data, in veth_parse()
45 struct rtnl_link *peer = link->l_info; in veth_parse()
83 static void veth_dump_line(struct rtnl_link *link, struct nl_dump_params *p) in veth_dump_line()
87 static void veth_dump_details(struct rtnl_link *link, struct nl_dump_params *p) in veth_dump_details()
89 struct rtnl_link *peer = link->l_info; in veth_dump_details()
99 static int veth_clone(struct rtnl_link *dst, struct rtnl_link *src) in veth_clone()
101 struct rtnl_link *dst_peer = NULL, *src_peer = src->l_info; in veth_clone()
107 dst_peer = (struct rtnl_link *)nl_object_clone(OBJ_CAST(src_peer)); in veth_clone()
117 static int veth_put_attrs(struct nl_msg *msg, struct rtnl_link *link) in veth_put_attrs()
119 struct rtnl_link *peer = link->l_info; in veth_put_attrs()
[all …]
Dvxlan.c90 static int vxlan_alloc(struct rtnl_link *link) in vxlan_alloc()
102 static int vxlan_parse(struct rtnl_link *link, struct nlattr *data, in vxlan_parse()
198 static void vxlan_free(struct rtnl_link *link) in vxlan_free()
206 static void vxlan_dump_line(struct rtnl_link *link, struct nl_dump_params *p) in vxlan_dump_line()
213 static void vxlan_dump_details(struct rtnl_link *link, struct nl_dump_params *p) in vxlan_dump_details()
323 static int vxlan_clone(struct rtnl_link *dst, struct rtnl_link *src) in vxlan_clone()
341 static int vxlan_put_attrs(struct nl_msg *msg, struct rtnl_link *link) in vxlan_put_attrs()
430 struct rtnl_link *rtnl_link_vxlan_alloc(void) in rtnl_link_vxlan_alloc()
432 struct rtnl_link *link; in rtnl_link_vxlan_alloc()
452 int rtnl_link_is_vxlan(struct rtnl_link *link) in rtnl_link_is_vxlan()
[all …]
Dbridge.c55 static inline struct bridge_data *bridge_data(struct rtnl_link *link) in bridge_data()
60 static void *bridge_alloc(struct rtnl_link *link) in bridge_alloc()
65 static void *bridge_clone(struct rtnl_link *link, void *data) in bridge_clone()
75 static void bridge_free(struct rtnl_link *link, void *data) in bridge_free()
90 static void check_flag(struct rtnl_link *link, struct nlattr *attrs[], in check_flag()
97 static int bridge_parse_protinfo(struct rtnl_link *link, struct nlattr *attr, in bridge_parse_protinfo()
144 static void bridge_dump_details(struct rtnl_link *link, in bridge_dump_details()
163 static int bridge_compare(struct rtnl_link *_a, struct rtnl_link *_b, in bridge_compare()
191 struct rtnl_link *rtnl_link_bridge_alloc(void) in rtnl_link_bridge_alloc()
193 struct rtnl_link *link; in rtnl_link_bridge_alloc()
[all …]
Dipgre.c73 static int ipgre_alloc(struct rtnl_link *link) in ipgre_alloc()
86 static int ipgre_parse(struct rtnl_link *link, struct nlattr *data, in ipgre_parse()
161 static int ipgre_put_attrs(struct nl_msg *msg, struct rtnl_link *link) in ipgre_put_attrs()
207 static void ipgre_free(struct rtnl_link *link) in ipgre_free()
215 static void ipgre_dump_line(struct rtnl_link *link, struct nl_dump_params *p) in ipgre_dump_line()
220 static void ipgre_dump_details(struct rtnl_link *link, struct nl_dump_params *p) in ipgre_dump_details()
286 static int ipgre_clone(struct rtnl_link *dst, struct rtnl_link *src) in ipgre_clone()
326 struct rtnl_link *rtnl_link_ipgre_alloc(void) in rtnl_link_ipgre_alloc()
328 struct rtnl_link *link; in rtnl_link_ipgre_alloc()
350 int rtnl_link_is_ipgre(struct rtnl_link *link) in rtnl_link_is_ipgre()
[all …]
Dip6tnl.c71 static int ip6_tnl_alloc(struct rtnl_link *link) in ip6_tnl_alloc()
84 static int ip6_tnl_parse(struct rtnl_link *link, struct nlattr *data, in ip6_tnl_parse()
154 static int ip6_tnl_put_attrs(struct nl_msg *msg, struct rtnl_link *link) in ip6_tnl_put_attrs()
199 static void ip6_tnl_free(struct rtnl_link *link) in ip6_tnl_free()
207 static void ip6_tnl_dump_line(struct rtnl_link *link, struct nl_dump_params *p) in ip6_tnl_dump_line()
212 static void ip6_tnl_dump_details(struct rtnl_link *link, struct nl_dump_params *p) in ip6_tnl_dump_details()
275 static int ip6_tnl_clone(struct rtnl_link *dst, struct rtnl_link *src) in ip6_tnl_clone()
315 struct rtnl_link *rtnl_link_ip6_tnl_alloc(void) in rtnl_link_ip6_tnl_alloc()
317 struct rtnl_link *link; in rtnl_link_ip6_tnl_alloc()
339 int rtnl_link_is_ip6_tnl(struct rtnl_link *link) in rtnl_link_is_ip6_tnl()
[all …]
Dsit.c67 static int sit_alloc(struct rtnl_link *link) in sit_alloc()
80 static int sit_parse(struct rtnl_link *link, struct nlattr *data, in sit_parse()
145 static int sit_put_attrs(struct nl_msg *msg, struct rtnl_link *link) in sit_put_attrs()
185 static void sit_free(struct rtnl_link *link) in sit_free()
193 static void sit_dump_line(struct rtnl_link *link, struct nl_dump_params *p) in sit_dump_line()
198 static void sit_dump_details(struct rtnl_link *link, struct nl_dump_params *p) in sit_dump_details()
249 static int sit_clone(struct rtnl_link *dst, struct rtnl_link *src) in sit_clone()
289 struct rtnl_link *rtnl_link_sit_alloc(void) in rtnl_link_sit_alloc()
291 struct rtnl_link *link; in rtnl_link_sit_alloc()
313 int rtnl_link_is_sit(struct rtnl_link *link) in rtnl_link_is_sit()
[all …]
Dipip.c61 static int ipip_alloc(struct rtnl_link *link) in ipip_alloc()
74 static int ipip_parse(struct rtnl_link *link, struct nlattr *data, in ipip_parse()
129 static int ipip_put_attrs(struct nl_msg *msg, struct rtnl_link *link) in ipip_put_attrs()
162 static void ipip_free(struct rtnl_link *link) in ipip_free()
170 static void ipip_dump_line(struct rtnl_link *link, struct nl_dump_params *p) in ipip_dump_line()
175 static void ipip_dump_details(struct rtnl_link *link, struct nl_dump_params *p) in ipip_dump_details()
221 static int ipip_clone(struct rtnl_link *dst, struct rtnl_link *src) in ipip_clone()
261 struct rtnl_link *rtnl_link_ipip_alloc(void) in rtnl_link_ipip_alloc()
263 struct rtnl_link *link; in rtnl_link_ipip_alloc()
285 int rtnl_link_is_ipip(struct rtnl_link *link) in rtnl_link_is_ipip()
[all …]
Dipvti.c58 static int ipvti_alloc(struct rtnl_link *link) in ipvti_alloc()
71 static int ipvti_parse(struct rtnl_link *link, struct nlattr *data, in ipvti_parse()
121 static int ipvti_put_attrs(struct nl_msg *msg, struct rtnl_link *link) in ipvti_put_attrs()
152 static void ipvti_free(struct rtnl_link *link) in ipvti_free()
160 static void ipvti_dump_line(struct rtnl_link *link, struct nl_dump_params *p) in ipvti_dump_line()
165 static void ipvti_dump_details(struct rtnl_link *link, struct nl_dump_params *p) in ipvti_dump_details()
206 static int ipvti_clone(struct rtnl_link *dst, struct rtnl_link *src) in ipvti_clone()
246 struct rtnl_link *rtnl_link_ipvti_alloc(void) in rtnl_link_ipvti_alloc()
248 struct rtnl_link *link; in rtnl_link_ipvti_alloc()
270 int rtnl_link_is_ipvti(struct rtnl_link *link) in rtnl_link_is_ipvti()
[all …]
/external/libnl/include/netlink/cli/
Dlink.h18 extern struct rtnl_link *nl_cli_link_alloc(void);
22 extern void nl_cli_link_parse_family(struct rtnl_link *, char *);
23 extern void nl_cli_link_parse_name(struct rtnl_link *, char *);
24 extern void nl_cli_link_parse_mtu(struct rtnl_link *, char *);
25 extern void nl_cli_link_parse_ifindex(struct rtnl_link *, char *);
26 extern void nl_cli_link_parse_txqlen(struct rtnl_link *, char *);
27 extern void nl_cli_link_parse_weight(struct rtnl_link *, char *);
28 extern void nl_cli_link_parse_ifalias(struct rtnl_link *, char *);
/external/libnl/lib/route/
Dlink.c69 static struct rtnl_link_af_ops *af_lookup_and_alloc(struct rtnl_link *link, in af_lookup_and_alloc()
87 static int af_free(struct rtnl_link *link, struct rtnl_link_af_ops *ops, in af_free()
98 static int af_clone(struct rtnl_link *link, struct rtnl_link_af_ops *ops, in af_clone()
101 struct rtnl_link *dst = arg; in af_clone()
110 static int af_fill(struct rtnl_link *link, struct rtnl_link_af_ops *ops, in af_fill()
131 static int af_dump_line(struct rtnl_link *link, struct rtnl_link_af_ops *ops, in af_dump_line()
142 static int af_dump_details(struct rtnl_link *link, struct rtnl_link_af_ops *ops, in af_dump_details()
153 static int af_dump_stats(struct rtnl_link *link, struct rtnl_link_af_ops *ops, in af_dump_stats()
164 static int do_foreach_af(struct rtnl_link *link, in do_foreach_af()
165 int (*cb)(struct rtnl_link *, in do_foreach_af() argument
[all …]
/external/libnl/doc/
Droute.txt196 The cache will contain link objects (+struct rtnl_link+, see <<link_object>>)
208 struct rtnl_link *rtnl_link_get(struct nl_cache *cache, int ifindex);
209 struct rtnl_link *rtnl_link_get_by_name(struct nl_cache *cache, const char *name);
217 struct rtnl_link *link;
241 int rtnl_link_get_kernel(struct nl_sock *sk, int ifindex, const char *name, struct rtnl_link **resu…
252 struct rtnl_link *link;
289 int rtnl_link_add(struct nl_sock *sk, struct rtnl_link *link, int flags);
303 int rtnl_link_delete(struct nl_sock *sk, const struct rtnl_link *link);
312 struct rtnl_link *link;
328 A link is represented by the structure +struct rtnl_link+. Instances may be
[all …]
/external/libnl/src/lib/
Dlink.c23 struct rtnl_link *nl_cli_link_alloc(void) in nl_cli_link_alloc()
25 struct rtnl_link *link; in nl_cli_link_alloc()
53 void nl_cli_link_parse_family(struct rtnl_link *link, char *arg) in nl_cli_link_parse_family()
64 void nl_cli_link_parse_name(struct rtnl_link *link, char *arg) in nl_cli_link_parse_name()
69 void nl_cli_link_parse_mtu(struct rtnl_link *link, char *arg) in nl_cli_link_parse_mtu()
75 void nl_cli_link_parse_ifindex(struct rtnl_link *link, char *arg) in nl_cli_link_parse_ifindex()
81 void nl_cli_link_parse_txqlen(struct rtnl_link *link, char *arg) in nl_cli_link_parse_txqlen()
87 void nl_cli_link_parse_weight(struct rtnl_link *link, char *arg) in nl_cli_link_parse_weight()
91 void nl_cli_link_parse_ifalias(struct rtnl_link *link, char *arg) in nl_cli_link_parse_ifalias()

123