/external/libnl/include/netlink/ |
D | socket.h | 22 extern struct nl_sock * nl_socket_alloc(void); 23 extern struct nl_sock * nl_socket_alloc_cb(struct nl_cb *); 24 extern void nl_socket_free(struct nl_sock *); 26 extern uint32_t nl_socket_get_local_port(struct nl_sock *); 27 extern void nl_socket_set_local_port(struct nl_sock *, uint32_t); 29 extern int nl_socket_add_memberships(struct nl_sock *, int, ...); 30 extern int nl_socket_add_membership(struct nl_sock *, int); 31 extern int nl_socket_drop_memberships(struct nl_sock *, int, ...); 32 extern int nl_socket_drop_membership(struct nl_sock *, 34 extern void nl_join_groups(struct nl_sock *, int); [all …]
|
D | netlink.h | 45 extern int nl_connect(struct nl_sock *, int); 46 extern void nl_close(struct nl_sock *); 49 extern int nl_sendto(struct nl_sock *, void *, size_t); 50 extern int nl_sendmsg(struct nl_sock *, struct nl_msg *, 52 extern int nl_send(struct nl_sock *, struct nl_msg *); 53 extern int nl_send_iovec(struct nl_sock *, struct nl_msg *, 55 extern void nl_auto_complete(struct nl_sock *, 57 extern int nl_send_auto_complete(struct nl_sock *, 59 extern int nl_send_simple(struct nl_sock *, int, int, 63 extern int nl_recv(struct nl_sock *, [all …]
|
D | cache.h | 41 struct nl_sock *, 56 extern int nl_cache_refill(struct nl_sock *, 58 extern int nl_cache_pickup(struct nl_sock *, 60 extern int nl_cache_resync(struct nl_sock *, 111 extern int nl_cache_mngr_alloc(struct nl_sock *,
|
D | handlers.h | 26 struct nl_sock; 129 int (*func)(struct nl_sock *, 132 int (*func)(struct nl_sock *, 137 int (*func)(struct nl_sock *,
|
/external/libnl/lib/ |
D | socket.c | 90 static struct nl_sock *__alloc_socket(struct nl_cb *cb) in __alloc_socket() 92 struct nl_sock *sk; in __alloc_socket() 117 struct nl_sock *nl_socket_alloc(void) in nl_socket_alloc() 137 struct nl_sock *nl_socket_alloc_cb(struct nl_cb *cb) in nl_socket_alloc_cb() 149 void nl_socket_free(struct nl_sock *sk) in nl_socket_free() 188 void nl_socket_disable_seq_check(struct nl_sock *sk) in nl_socket_disable_seq_check() 203 unsigned int nl_socket_use_seq(struct nl_sock *sk) in nl_socket_use_seq() 220 void nl_socket_disable_auto_ack(struct nl_sock *sk) in nl_socket_disable_auto_ack() 230 void nl_socket_enable_auto_ack(struct nl_sock *sk) in nl_socket_enable_auto_ack() 242 uint32_t nl_socket_get_local_port(struct nl_sock *sk) in nl_socket_get_local_port() [all …]
|
D | nl.c | 106 int nl_connect(struct nl_sock *sk, int protocol) in nl_connect() 162 void nl_close(struct nl_sock *sk) in nl_close() 186 int nl_sendto(struct nl_sock *sk, void *buf, size_t size) in nl_sendto() 205 int nl_sendmsg(struct nl_sock *sk, struct nl_msg *msg, struct msghdr *hdr) in nl_sendmsg() 235 int nl_send_iovec(struct nl_sock *sk, struct nl_msg *msg, struct iovec *iov, unsigned iovlen) in nl_send_iovec() 281 int nl_send(struct nl_sock *sk, struct nl_msg *msg) in nl_send() 291 void nl_auto_complete(struct nl_sock *sk, struct nl_msg *msg) in nl_auto_complete() 323 int nl_send_auto_complete(struct nl_sock *sk, struct nl_msg *msg) in nl_send_auto_complete() 349 int nl_send_simple(struct nl_sock *sk, int type, int flags, void *buf, in nl_send_simple() 399 int nl_recv(struct nl_sock *sk, struct sockaddr_nl *nla, in nl_recv() [all …]
|
/external/libnl/include/netlink/netfilter/ |
D | queue.h | 21 struct nl_sock; 34 extern struct nl_sock * nfnl_queue_socket_alloc(void); 65 extern int nfnl_queue_pf_bind(struct nl_sock *, uint8_t); 68 extern int nfnl_queue_pf_unbind(struct nl_sock *, uint8_t); 72 extern int nfnl_queue_create(struct nl_sock *, 77 extern int nfnl_queue_change(struct nl_sock *, 82 extern int nfnl_queue_delete(struct nl_sock *,
|
D | log.h | 24 struct nl_sock; 87 extern int nfnl_log_pf_bind(struct nl_sock *, uint8_t); 90 extern int nfnl_log_pf_unbind(struct nl_sock *, uint8_t); 94 extern int nfnl_log_create(struct nl_sock *, const struct nfnl_log *); 98 extern int nfnl_log_change(struct nl_sock *, const struct nfnl_log *); 102 extern int nfnl_log_delete(struct nl_sock *, const struct nfnl_log *);
|
D | ct.h | 31 extern int nfnl_ct_alloc_cache(struct nl_sock *, struct nl_cache **); 39 extern int nfnl_ct_dump_request(struct nl_sock *); 43 extern int nfnl_ct_add(struct nl_sock *, const struct nfnl_ct *, int); 47 extern int nfnl_ct_delete(struct nl_sock *, const struct nfnl_ct *, int); 51 extern int nfnl_ct_query(struct nl_sock *, const struct nfnl_ct *, int);
|
/external/libnl/lib/netfilter/ |
D | queue.c | 27 struct nl_sock *nfnl_queue_socket_alloc(void) in nfnl_queue_socket_alloc() 29 struct nl_sock *nlsk; in nfnl_queue_socket_alloc() 37 static int send_queue_request(struct nl_sock *sk, struct nl_msg *msg) in send_queue_request() 84 int nfnl_queue_pf_bind(struct nl_sock *nlh, uint8_t pf) in nfnl_queue_pf_bind() 100 int nfnl_queue_pf_unbind(struct nl_sock *nlh, uint8_t pf) in nfnl_queue_pf_unbind() 182 int nfnl_queue_create(struct nl_sock *nlh, const struct nfnl_queue *queue) in nfnl_queue_create() 199 int nfnl_queue_change(struct nl_sock *nlh, const struct nfnl_queue *queue) in nfnl_queue_change() 220 int nfnl_queue_delete(struct nl_sock *nlh, const struct nfnl_queue *queue) in nfnl_queue_delete()
|
D | log.c | 57 static int send_log_request(struct nl_sock *sk, struct nl_msg *msg) in send_log_request() 74 int nfnl_log_pf_bind(struct nl_sock *nlh, uint8_t pf) in nfnl_log_pf_bind() 90 int nfnl_log_pf_unbind(struct nl_sock *nlh, uint8_t pf) in nfnl_log_pf_unbind() 182 int nfnl_log_create(struct nl_sock *nlh, const struct nfnl_log *log) in nfnl_log_create() 199 int nfnl_log_change(struct nl_sock *nlh, const struct nfnl_log *log) in nfnl_log_change() 220 int nfnl_log_delete(struct nl_sock *nlh, const struct nfnl_log *log) in nfnl_log_delete()
|
/external/libnl/include/netlink/cli/ |
D | utils.h | 67 extern int nl_cli_connect(struct nl_sock *, int); 68 extern struct nl_sock * nl_cli_alloc_socket(void); 73 extern struct nl_cache *nl_cli_alloc_cache(struct nl_sock *, const char *, 74 int (*ac)(struct nl_sock *, struct nl_cache **));
|
/external/libnl/src/lib/ |
D | utils.c | 64 int nl_cli_connect(struct nl_sock *sk, int protocol) in nl_cli_connect() 75 struct nl_sock *nl_cli_alloc_socket(void) in nl_cli_alloc_socket() 77 struct nl_sock *sock; in nl_cli_alloc_socket() 132 struct nl_cache *nl_cli_alloc_cache(struct nl_sock *sock, const char *name, in nl_cli_alloc_cache() 133 int (*ac)(struct nl_sock *, struct nl_cache **)) in nl_cli_alloc_cache() argument
|
/external/libnl/include/netlink/route/ |
D | qdisc.h | 30 extern int rtnl_qdisc_alloc_cache(struct nl_sock *, struct nl_cache **); 37 extern int rtnl_qdisc_add(struct nl_sock *, struct rtnl_qdisc *, int); 42 extern int rtnl_qdisc_change(struct nl_sock *, struct rtnl_qdisc *, 47 extern int rtnl_qdisc_delete(struct nl_sock *, struct rtnl_qdisc *);
|
D | classifier.h | 29 extern int rtnl_cls_alloc_cache(struct nl_sock *, int, uint32_t, 34 extern int rtnl_cls_add(struct nl_sock *, struct rtnl_cls *, int); 40 extern int rtnl_cls_delete(struct nl_sock *, struct rtnl_cls *, int);
|
D | neighbour.h | 28 extern int rtnl_neigh_alloc_cache(struct nl_sock *, struct nl_cache **); 38 extern int rtnl_neigh_add(struct nl_sock *, struct rtnl_neigh *, int); 42 extern int rtnl_neigh_delete(struct nl_sock *, struct rtnl_neigh *, int);
|
D | class.h | 29 extern int rtnl_class_alloc_cache(struct nl_sock *, int, 39 extern int rtnl_class_add(struct nl_sock *, struct rtnl_class *, 44 extern int rtnl_class_delete(struct nl_sock *, struct rtnl_class *);
|
D | rule.h | 30 extern int rtnl_rule_alloc_cache(struct nl_sock *, int, 36 extern int rtnl_rule_add(struct nl_sock *, struct rtnl_rule *, int); 39 extern int rtnl_rule_delete(struct nl_sock *, struct rtnl_rule *, int);
|
D | addr.h | 31 extern int rtnl_addr_alloc_cache(struct nl_sock *, struct nl_cache **); 35 extern int rtnl_addr_add(struct nl_sock *, struct rtnl_addr *, int); 39 extern int rtnl_addr_delete(struct nl_sock *,
|
/external/autotest/client/deps/iwcap/src/ |
D | iwcap.c | 30 # define nl_sock nl_handle macro 37 static inline void nl_socket_free(struct nl_sock *h) in nl_socket_free() 42 static inline int __genl_ctrl_alloc_cache(struct nl_sock *h, struct nl_cache **cache) in __genl_ctrl_alloc_cache() 54 struct nl_sock *nl_sock; member 63 state->nl_sock = nl_socket_alloc(); in nl80211_init() 64 if (!state->nl_sock) { in nl80211_init() 69 if (genl_connect(state->nl_sock)) { in nl80211_init() 75 if (genl_ctrl_alloc_cache(state->nl_sock, &state->nl_cache)) { in nl80211_init() 93 nl_socket_free(state->nl_sock); in nl80211_init() 101 nl_socket_free(state->nl_sock); in nl80211_cleanup() [all …]
|
/external/iw/ |
D | iw.c | 33 static inline void nl_socket_free(struct nl_sock *h) in nl_socket_free() 38 static inline int nl_socket_set_buffer_size(struct nl_sock *sk, in nl_socket_set_buffer_size() 51 state->nl_sock = nl_socket_alloc(); in nl80211_init() 52 if (!state->nl_sock) { in nl80211_init() 57 nl_socket_set_buffer_size(state->nl_sock, 8192, 8192); in nl80211_init() 59 if (genl_connect(state->nl_sock)) { in nl80211_init() 65 state->nl80211_id = genl_ctrl_resolve(state->nl_sock, "nl80211"); in nl80211_init() 75 nl_socket_free(state->nl_sock); in nl80211_init() 81 nl_socket_free(state->nl_sock); in nl80211_cleanup() 465 nl_socket_set_cb(state->nl_sock, s_cb); in __handle_cmd() [all …]
|
D | event.c | 650 mcid = nl_get_multicast_id(state->nl_sock, "nl80211", "config"); in __prepare_listen_events() 654 ret = nl_socket_add_membership(state->nl_sock, mcid); in __prepare_listen_events() 659 mcid = nl_get_multicast_id(state->nl_sock, "nl80211", "scan"); in __prepare_listen_events() 661 ret = nl_socket_add_membership(state->nl_sock, mcid); in __prepare_listen_events() 667 mcid = nl_get_multicast_id(state->nl_sock, "nl80211", "regulatory"); in __prepare_listen_events() 669 ret = nl_socket_add_membership(state->nl_sock, mcid); in __prepare_listen_events() 675 mcid = nl_get_multicast_id(state->nl_sock, "nl80211", "mlme"); in __prepare_listen_events() 677 ret = nl_socket_add_membership(state->nl_sock, mcid); in __prepare_listen_events() 682 mcid = nl_get_multicast_id(state->nl_sock, "nl80211", "vendor"); in __prepare_listen_events() 684 ret = nl_socket_add_membership(state->nl_sock, mcid); in __prepare_listen_events() [all …]
|
/external/libnl/lib/route/ |
D | cls.c | 70 static int cls_request_update(struct nl_cache *cache, struct nl_sock *sk) in cls_request_update() 160 int rtnl_cls_add(struct nl_sock *sk, struct rtnl_cls *cls, int flags) in rtnl_cls_add() 207 int rtnl_cls_change(struct nl_sock *sk, struct rtnl_cls *cls, int flags) in rtnl_cls_change() 255 int rtnl_cls_delete(struct nl_sock *sk, struct rtnl_cls *cls, int flags) in rtnl_cls_delete() 294 int rtnl_cls_alloc_cache(struct nl_sock *sk, int ifindex, uint32_t parent, struct nl_cache **res… in rtnl_cls_alloc_cache()
|
D | route.c | 45 static int route_request_update(struct nl_cache *c, struct nl_sock *h) in route_request_update() 75 int rtnl_route_alloc_cache(struct nl_sock *sk, int family, int flags, in rtnl_route_alloc_cache() 128 int rtnl_route_add(struct nl_sock *sk, struct rtnl_route *route, int flags) in rtnl_route_add() 150 int rtnl_route_delete(struct nl_sock *sk, struct rtnl_route *route, int flags) in rtnl_route_delete()
|
D | qdisc.c | 131 static int qdisc_request_update(struct nl_cache *c, struct nl_sock *sk) in qdisc_request_update() 222 int rtnl_qdisc_add(struct nl_sock *sk, struct rtnl_qdisc *qdisc, in rtnl_qdisc_add() 278 int rtnl_qdisc_change(struct nl_sock *sk, struct rtnl_qdisc *qdisc, in rtnl_qdisc_change() 352 int rtnl_qdisc_delete(struct nl_sock *sk, struct rtnl_qdisc *qdisc) in rtnl_qdisc_delete() 386 int rtnl_qdisc_alloc_cache(struct nl_sock *sk, struct nl_cache **result) in rtnl_qdisc_alloc_cache()
|