/external/libnl/include/netlink/route/ |
D | link.h | 32 struct rtnl_link; 109 extern struct rtnl_link *rtnl_link_alloc(void); 110 extern void rtnl_link_put(struct rtnl_link *); 116 extern struct rtnl_link *rtnl_link_get(struct nl_cache *, int); 117 extern struct rtnl_link *rtnl_link_get_by_name(struct nl_cache *, const char *); 120 extern int rtnl_link_build_add_request(struct rtnl_link *, int, 122 extern int rtnl_link_add(struct nl_sock *, struct rtnl_link *, int); 123 extern int rtnl_link_build_change_request(struct rtnl_link *, 124 struct rtnl_link *, int, 126 extern int rtnl_link_change(struct nl_sock *, struct rtnl_link *, [all …]
|
/external/libnl/include/netlink/route/link/ |
D | vxlan.h | 35 extern struct rtnl_link *rtnl_link_vxlan_alloc(void); 37 extern int rtnl_link_is_vxlan(struct rtnl_link *); 39 extern int rtnl_link_vxlan_set_id(struct rtnl_link *, uint32_t); 40 extern int rtnl_link_vxlan_get_id(struct rtnl_link *, uint32_t *); 42 extern int rtnl_link_vxlan_set_group(struct rtnl_link *, struct nl_addr *); 43 extern int rtnl_link_vxlan_get_group(struct rtnl_link *, struct nl_addr **); 45 extern int rtnl_link_vxlan_set_link(struct rtnl_link *, uint32_t); 46 extern int rtnl_link_vxlan_get_link(struct rtnl_link *, uint32_t *); 48 extern int rtnl_link_vxlan_set_local(struct rtnl_link *, struct nl_addr *); 49 extern int rtnl_link_vxlan_get_local(struct rtnl_link *, struct nl_addr **); [all …]
|
D | macsec.h | 26 struct rtnl_link *rtnl_link_macsec_alloc(void); 28 int rtnl_link_macsec_set_sci(struct rtnl_link *, uint64_t); 29 int rtnl_link_macsec_get_sci(struct rtnl_link *, uint64_t *); 31 int rtnl_link_macsec_set_port(struct rtnl_link *, uint16_t); 32 int rtnl_link_macsec_get_port(struct rtnl_link *, uint16_t *); 34 int rtnl_link_macsec_set_cipher_suite(struct rtnl_link *, uint64_t); 35 int rtnl_link_macsec_get_cipher_suite(struct rtnl_link *, uint64_t *); 37 int rtnl_link_macsec_set_icv_len(struct rtnl_link *, uint16_t); 38 int rtnl_link_macsec_get_icv_len(struct rtnl_link *, uint16_t *); 40 int rtnl_link_macsec_set_protect(struct rtnl_link *, uint8_t); [all …]
|
D | sit.h | 22 extern struct rtnl_link *rtnl_link_sit_alloc(void); 25 extern int rtnl_link_is_sit(struct rtnl_link *link); 27 extern int rtnl_link_sit_set_link(struct rtnl_link *link, uint32_t index); 28 extern uint32_t rtnl_link_sit_get_link(struct rtnl_link *link); 30 extern int rtnl_link_sit_set_local(struct rtnl_link *link, uint32_t addr); 31 extern uint32_t rtnl_link_sit_get_local(struct rtnl_link *link); 33 extern int rtnl_link_sit_set_remote(struct rtnl_link *link, uint32_t addr); 34 extern uint32_t rtnl_link_sit_get_remote(struct rtnl_link *link); 36 extern int rtnl_link_sit_set_ttl(struct rtnl_link *link, uint8_t ttl); 37 extern uint8_t rtnl_link_sit_get_ttl(struct rtnl_link *link); [all …]
|
D | geneve.h | 23 extern struct rtnl_link *rtnl_link_geneve_alloc(void); 24 extern int rtnl_link_is_geneve(struct rtnl_link *); 26 extern int rtnl_link_geneve_set_id(struct rtnl_link *, uint32_t); 27 extern int rtnl_link_geneve_get_id(struct rtnl_link *, uint32_t *); 29 extern int rtnl_link_geneve_set_remote(struct rtnl_link *, struct nl_addr *); 30 extern int rtnl_link_geneve_get_remote(struct rtnl_link *, struct nl_addr **); 32 extern int rtnl_link_geneve_set_ttl(struct rtnl_link *, uint8_t); 33 extern int rtnl_link_geneve_get_ttl(struct rtnl_link *); 35 extern int rtnl_link_geneve_set_tos(struct rtnl_link *, uint8_t); 36 extern int rtnl_link_geneve_get_tos(struct rtnl_link *); [all …]
|
D | ipgre.h | 22 extern int rtnl_link_is_ipgre(struct rtnl_link *link); 23 extern int rtnl_link_is_ipgretap(struct rtnl_link *link); 25 extern struct rtnl_link *rtnl_link_ipgre_alloc(void); 26 extern struct rtnl_link *rtnl_link_ipgretap_alloc(void); 30 extern int rtnl_link_ipgre_set_link(struct rtnl_link *link, uint32_t index); 31 extern uint32_t rtnl_link_ipgre_get_link(struct rtnl_link *link); 33 extern int rtnl_link_ipgre_set_iflags(struct rtnl_link *link, uint16_t iflags); 34 extern uint16_t rtnl_link_ipgre_get_iflags(struct rtnl_link *link); 36 extern int rtnl_link_ipgre_set_oflags(struct rtnl_link *link, uint16_t oflags); 37 extern uint16_t rtnl_link_ipgre_get_oflags(struct rtnl_link *link); [all …]
|
D | can.h | 27 extern int rtnl_link_is_can(struct rtnl_link *link); 32 extern int rtnl_link_can_restart(struct rtnl_link *); 33 extern int rtnl_link_can_freq(struct rtnl_link *, uint32_t *); 34 extern int rtnl_link_can_state(struct rtnl_link *, uint32_t *); 36 extern int rtnl_link_can_berr_rx(struct rtnl_link *); 37 extern int rtnl_link_can_berr_tx(struct rtnl_link *); 38 extern int rtnl_link_can_berr(struct rtnl_link *, struct can_berr_counter *); 40 extern int rtnl_link_can_get_bt_const(struct rtnl_link *, 42 extern int rtnl_link_can_get_bittiming(struct rtnl_link *, 44 extern int rtnl_link_can_set_bittiming(struct rtnl_link *, [all …]
|
D | ip6tnl.h | 22 extern struct rtnl_link *rtnl_link_ip6_tnl_alloc(void); 25 extern int rtnl_link_is_ip6_tnl(struct rtnl_link *link); 27 extern int rtnl_link_ip6_tnl_set_link(struct rtnl_link *link, uint32_t index); 28 extern uint32_t rtnl_link_ip6_tnl_get_link(struct rtnl_link *link); 30 extern int rtnl_link_ip6_tnl_set_local(struct rtnl_link *link, struct in6_addr *); 31 extern int rtnl_link_ip6_tnl_get_local(struct rtnl_link *link, struct in6_addr *addr); 33 extern int rtnl_link_ip6_tnl_set_remote(struct rtnl_link *link, struct in6_addr *); 34 extern int rtnl_link_ip6_tnl_get_remote(struct rtnl_link *link, struct in6_addr *); 36 extern int rtnl_link_ip6_tnl_set_ttl(struct rtnl_link *link, uint8_t ttl); 37 extern uint8_t rtnl_link_ip6_tnl_get_ttl(struct rtnl_link *link); [all …]
|
D | bridge.h | 51 extern struct rtnl_link *rtnl_link_bridge_alloc(void); 53 extern int rtnl_link_is_bridge(struct rtnl_link *); 54 extern int rtnl_link_bridge_has_ext_info(struct rtnl_link *); 56 extern int rtnl_link_bridge_set_port_state(struct rtnl_link *, uint8_t ); 57 extern int rtnl_link_bridge_get_port_state(struct rtnl_link *); 59 extern int rtnl_link_bridge_set_priority(struct rtnl_link *, uint16_t); 60 extern int rtnl_link_bridge_get_priority(struct rtnl_link *); 62 extern int rtnl_link_bridge_set_cost(struct rtnl_link *, uint32_t); 63 extern int rtnl_link_bridge_get_cost(struct rtnl_link *, uint32_t *); 65 extern int rtnl_link_bridge_unset_flags(struct rtnl_link *, unsigned int); [all …]
|
D | ipip.h | 21 extern struct rtnl_link *rtnl_link_ipip_alloc(void); 24 extern int rtnl_link_is_ipip(struct rtnl_link *link); 26 extern uint32_t rtnl_link_ipip_get_link(struct rtnl_link *link); 27 extern int rtnl_link_ipip_set_link(struct rtnl_link *link, uint32_t index); 29 extern int rtnl_link_ipip_set_local(struct rtnl_link *link, uint32_t addr); 30 extern uint32_t rtnl_link_ipip_get_local(struct rtnl_link *link); 32 extern int rtnl_link_ipip_set_remote(struct rtnl_link *link, uint32_t addr); 33 extern uint32_t rtnl_link_ipip_get_remote(struct rtnl_link *link); 35 extern int rtnl_link_ipip_set_ttl(struct rtnl_link *link, uint8_t ttl); 36 extern uint8_t rtnl_link_ipip_get_ttl(struct rtnl_link *link); [all …]
|
D | vlan.h | 30 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 …]
|
D | macvlan.h | 22 extern struct rtnl_link *rtnl_link_macvlan_alloc(void); 24 extern int rtnl_link_is_macvlan(struct rtnl_link *); 35 extern int rtnl_link_macvlan_set_mode(struct rtnl_link *, 37 extern uint32_t rtnl_link_macvlan_get_mode(struct rtnl_link *); 39 extern int rtnl_link_macvlan_set_flags(struct rtnl_link *, 41 extern int rtnl_link_macvlan_unset_flags(struct rtnl_link *, 43 extern uint16_t rtnl_link_macvlan_get_flags(struct rtnl_link *); 45 extern int rtnl_link_macvlan_set_macmode(struct rtnl_link *, 47 extern int rtnl_link_macvlan_get_macmode(struct rtnl_link *link, 50 extern int rtnl_link_macvlan_count_macaddr(struct rtnl_link *link, [all …]
|
D | ipvti.h | 21 extern struct rtnl_link *rtnl_link_ipvti_alloc(void); 24 extern int rtnl_link_is_ipvti(struct rtnl_link *link); 26 extern int rtnl_link_ipvti_set_link(struct rtnl_link *link, uint32_t index); 27 extern uint32_t rtnl_link_ipvti_get_link(struct rtnl_link *link); 29 extern int rtnl_link_ipvti_set_ikey(struct rtnl_link *link, uint32_t ikey); 30 extern uint32_t rtnl_link_ipvti_get_ikey(struct rtnl_link *link); 32 extern int rtnl_link_ipvti_set_okey(struct rtnl_link *link, uint32_t okey); 33 extern uint32_t rtnl_link_ipvti_get_okey(struct rtnl_link *link); 35 extern int rtnl_link_ipvti_set_local(struct rtnl_link *link, uint32_t addr); 36 extern uint32_t rtnl_link_ipvti_get_local(struct rtnl_link *link); [all …]
|
/external/libnl/python/netlink/route/ |
D | capi.i | 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); [all …]
|
/external/libnl/include/netlink-private/route/link/ |
D | api.h | 37 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 *); 64 int (*io_compare)(struct rtnl_link *, struct rtnl_link *, 98 void * (*ao_alloc)(struct rtnl_link *); 102 void * (*ao_clone)(struct rtnl_link *, void *); 105 void (*ao_free)(struct rtnl_link *, void *); [all …]
|
/external/libnl/lib/route/link/ |
D | veth.c | 41 static int veth_parse(struct rtnl_link *link, struct nlattr *data, in veth_parse() 46 struct rtnl_link *peer = link->l_info; in veth_parse() 84 static void veth_dump_line(struct rtnl_link *link, struct nl_dump_params *p) in veth_dump_line() 88 static void veth_dump_details(struct rtnl_link *link, struct nl_dump_params *p) in veth_dump_details() 90 struct rtnl_link *peer = link->l_info; in veth_dump_details() 100 static int veth_clone(struct rtnl_link *dst, struct rtnl_link *src) in veth_clone() 102 struct rtnl_link *dst_peer = NULL, *src_peer = src->l_info; in veth_clone() 108 dst_peer = (struct rtnl_link *)nl_object_clone(OBJ_CAST(src_peer)); in veth_clone() 118 static int veth_put_attrs(struct nl_msg *msg, struct rtnl_link *link) in veth_put_attrs() 120 struct rtnl_link *peer = link->l_info; in veth_put_attrs() [all …]
|
D | ipgre.c | 74 static int ipgre_alloc(struct rtnl_link *link) in ipgre_alloc() 91 static int ipgre_parse(struct rtnl_link *link, struct nlattr *data, in ipgre_parse() 166 static int ipgre_put_attrs(struct nl_msg *msg, struct rtnl_link *link) in ipgre_put_attrs() 212 static void ipgre_free(struct rtnl_link *link) in ipgre_free() 220 static void ipgre_dump_line(struct rtnl_link *link, struct nl_dump_params *p) in ipgre_dump_line() 225 static void ipgre_dump_details(struct rtnl_link *link, struct nl_dump_params *p) in ipgre_dump_details() 229 struct rtnl_link *parent; in ipgre_dump_details() 297 static int ipgre_clone(struct rtnl_link *dst, struct rtnl_link *src) in ipgre_clone() 318 static int ipgretap_clone(struct rtnl_link *dst, struct rtnl_link *src) in ipgretap_clone() 372 struct rtnl_link *rtnl_link_ipgre_alloc(void) in rtnl_link_ipgre_alloc() [all …]
|
D | sit.c | 80 static int sit_alloc(struct rtnl_link *link) in sit_alloc() 97 static int sit_parse(struct rtnl_link *link, struct nlattr *data, in sit_parse() 183 static int sit_put_attrs(struct nl_msg *msg, struct rtnl_link *link) in sit_put_attrs() 235 static void sit_free(struct rtnl_link *link) in sit_free() 243 static void sit_dump_line(struct rtnl_link *link, struct nl_dump_params *p) in sit_dump_line() 248 static void sit_dump_details(struct rtnl_link *link, struct nl_dump_params *p) in sit_dump_details() 252 struct rtnl_link *parent; in sit_dump_details() 331 static int sit_clone(struct rtnl_link *dst, struct rtnl_link *src) in sit_clone() 368 const struct rtnl_link *_link = (link); \ 376 struct rtnl_link *rtnl_link_sit_alloc(void) in rtnl_link_sit_alloc() [all …]
|
D | ip6tnl.c | 72 static int ip6_tnl_alloc(struct rtnl_link *link) in ip6_tnl_alloc() 89 static int ip6_tnl_parse(struct rtnl_link *link, struct nlattr *data, in ip6_tnl_parse() 159 static int ip6_tnl_put_attrs(struct nl_msg *msg, struct rtnl_link *link) in ip6_tnl_put_attrs() 204 static void ip6_tnl_free(struct rtnl_link *link) in ip6_tnl_free() 212 static void ip6_tnl_dump_line(struct rtnl_link *link, struct nl_dump_params *p) in ip6_tnl_dump_line() 217 static void ip6_tnl_dump_details(struct rtnl_link *link, struct nl_dump_params *p) in ip6_tnl_dump_details() 221 struct rtnl_link *parent; in ip6_tnl_dump_details() 286 static int ip6_tnl_clone(struct rtnl_link *dst, struct rtnl_link *src) in ip6_tnl_clone() 326 struct rtnl_link *rtnl_link_ip6_tnl_alloc(void) in rtnl_link_ip6_tnl_alloc() 328 struct rtnl_link *link; in rtnl_link_ip6_tnl_alloc() [all …]
|
D | ipip.c | 62 static int ipip_alloc(struct rtnl_link *link) in ipip_alloc() 79 static int ipip_parse(struct rtnl_link *link, struct nlattr *data, in ipip_parse() 134 static int ipip_put_attrs(struct nl_msg *msg, struct rtnl_link *link) in ipip_put_attrs() 167 static void ipip_free(struct rtnl_link *link) in ipip_free() 175 static void ipip_dump_line(struct rtnl_link *link, struct nl_dump_params *p) in ipip_dump_line() 180 static void ipip_dump_details(struct rtnl_link *link, struct nl_dump_params *p) in ipip_dump_details() 184 struct rtnl_link *parent; in ipip_dump_details() 232 static int ipip_clone(struct rtnl_link *dst, struct rtnl_link *src) in ipip_clone() 272 struct rtnl_link *rtnl_link_ipip_alloc(void) in rtnl_link_ipip_alloc() 274 struct rtnl_link *link; in rtnl_link_ipip_alloc() [all …]
|
D | ipvti.c | 59 static int ipvti_alloc(struct rtnl_link *link) in ipvti_alloc() 76 static int ipvti_parse(struct rtnl_link *link, struct nlattr *data, in ipvti_parse() 126 static int ipvti_put_attrs(struct nl_msg *msg, struct rtnl_link *link) in ipvti_put_attrs() 157 static void ipvti_free(struct rtnl_link *link) in ipvti_free() 165 static void ipvti_dump_line(struct rtnl_link *link, struct nl_dump_params *p) in ipvti_dump_line() 170 static void ipvti_dump_details(struct rtnl_link *link, struct nl_dump_params *p) in ipvti_dump_details() 174 struct rtnl_link *parent; in ipvti_dump_details() 217 static int ipvti_clone(struct rtnl_link *dst, struct rtnl_link *src) in ipvti_clone() 257 struct rtnl_link *rtnl_link_ipvti_alloc(void) in rtnl_link_ipvti_alloc() 259 struct rtnl_link *link; in rtnl_link_ipvti_alloc() [all …]
|
D | xfrmi.c | 52 static int xfrmi_alloc(struct rtnl_link *link) in xfrmi_alloc() 69 static int xfrmi_parse(struct rtnl_link *link, struct nlattr *data, in xfrmi_parse() 101 static int xfrmi_put_attrs(struct nl_msg *msg, struct rtnl_link *link) in xfrmi_put_attrs() 122 static void xfrmi_free(struct rtnl_link *link) in xfrmi_free() 130 static void xfrmi_dump_line(struct rtnl_link *link, struct nl_dump_params *p) in xfrmi_dump_line() 135 static void xfrmi_dump_details(struct rtnl_link *link, struct nl_dump_params *p) in xfrmi_dump_details() 140 struct rtnl_link *parent; in xfrmi_dump_details() 162 static int xfrmi_clone(struct rtnl_link *dst, struct rtnl_link *src) in xfrmi_clone() 203 struct rtnl_link *rtnl_link_xfrmi_alloc(void) in rtnl_link_xfrmi_alloc() 205 struct rtnl_link *link; in rtnl_link_xfrmi_alloc() [all …]
|
/external/libnl/include/netlink/cli/ |
D | link.h | 18 extern struct rtnl_link *nl_cli_link_alloc(void); 26 extern void nl_cli_link_parse_family(struct rtnl_link *, char *); 27 extern void nl_cli_link_parse_name(struct rtnl_link *, char *); 28 extern void nl_cli_link_parse_mtu(struct rtnl_link *, char *); 29 extern void nl_cli_link_parse_ifindex(struct rtnl_link *, char *); 30 extern void nl_cli_link_parse_txqlen(struct rtnl_link *, char *); 31 extern void nl_cli_link_parse_weight(struct rtnl_link *, char *); 32 extern void nl_cli_link_parse_ifalias(struct rtnl_link *, char *);
|
/external/libnl/doc/ |
D | route.txt | 196 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/lib/route/ |
D | link.c | 81 struct rtnl_link *link_lookup(struct nl_cache *cache, int ifindex) in link_lookup() 92 static struct rtnl_link_af_ops *af_lookup_and_alloc(struct rtnl_link *link, in af_lookup_and_alloc() 110 static int af_free(struct rtnl_link *link, struct rtnl_link_af_ops *ops, in af_free() 121 static int af_request_type(int af_type, struct rtnl_link *changes) in af_request_type() 132 static int af_clone(struct rtnl_link *link, struct rtnl_link_af_ops *ops, in af_clone() 135 struct rtnl_link *dst = arg; in af_clone() 144 static int af_fill(struct rtnl_link *link, struct rtnl_link_af_ops *ops, in af_fill() 167 static int af_fill_pi(struct rtnl_link *link, struct rtnl_link_af_ops *ops, in af_fill_pi() 191 static int af_dump_line(struct rtnl_link *link, struct rtnl_link_af_ops *ops, in af_dump_line() 202 static int af_dump_details(struct rtnl_link *link, struct rtnl_link_af_ops *ops, in af_dump_details() [all …]
|