Searched refs:nl_msg (Results 1 - 25 of 82) sorted by relevance

1234

/external/libnl/include/netlink/
H A Dmsg.h43 struct nl_msg;
71 extern struct nl_msg * nlmsg_alloc(void);
72 extern struct nl_msg * nlmsg_alloc_size(size_t);
73 extern struct nl_msg * nlmsg_alloc_simple(int, int);
75 extern struct nl_msg * nlmsg_inherit(struct nlmsghdr *);
76 extern struct nl_msg * nlmsg_convert(struct nlmsghdr *);
77 extern void * nlmsg_reserve(struct nl_msg *, size_t, int);
78 extern int nlmsg_append(struct nl_msg *, void *, size_t, int);
79 extern int nlmsg_expand(struct nl_msg *, size_t);
81 extern struct nlmsghdr * nlmsg_put(struct nl_msg *, uint32_
[all...]
H A Dattr.h24 struct nl_msg;
95 extern struct nlattr * nla_reserve(struct nl_msg *, int, int);
96 extern int nla_put(struct nl_msg *, int, int, const void *);
97 extern int nla_put_data(struct nl_msg *, int, struct nl_data *);
98 extern int nla_put_addr(struct nl_msg *, int, struct nl_addr *);
102 extern int nla_put_u8(struct nl_msg *, int, uint8_t);
104 extern int nla_put_u16(struct nl_msg *, int, uint16_t);
106 extern int nla_put_u32(struct nl_msg *, int, uint32_t);
108 extern int nla_put_u64(struct nl_msg *, int, uint64_t);
113 extern int nla_put_string(struct nl_msg *, in
[all...]
H A Dnetlink.h50 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 *,
56 struct nl_msg *);
58 struct nl_msg *);
H A Dhandlers.h27 struct nl_msg;
41 typedef int (*nl_recvmsg_msg_cb_t)(struct nl_msg *msg, void *arg);
138 struct nl_msg *));
/external/android-clat/
H A Dnetlink_msg.h22 struct nl_msg *nlmsg_alloc_ifaddr(uint16_t type, uint16_t flags, struct ifaddrmsg *ifa);
23 struct nl_msg *nlmsg_alloc_ifinfo(uint16_t type, uint16_t flags, struct ifinfomsg *ifi);
24 struct nl_msg *nlmsg_alloc_rtmsg(uint16_t type, uint16_t flags, struct rtmsg *rt);
25 void send_netlink_msg(struct nl_msg *msg, struct nl_cb *callbacks);
27 int netlink_sendrecv(struct nl_msg *msg);
H A Dnetlink_msg.c55 struct nl_msg *nlmsg_alloc_generic(uint16_t type, uint16_t flags, void *payload_struct, size_t payload_len) {
56 struct nl_msg *msg;
63 if ((sizeof(struct nl_msg) + payload_len) > msg->nm_size) {
83 struct nl_msg *nlmsg_alloc_ifaddr(uint16_t type, uint16_t flags, struct ifaddrmsg *ifa) {
93 struct nl_msg *nlmsg_alloc_ifinfo(uint16_t type, uint16_t flags, struct ifinfomsg *ifi) {
103 struct nl_msg *nlmsg_alloc_rtmsg(uint16_t type, uint16_t flags, struct rtmsg *rt) {
127 void send_netlink_msg(struct nl_msg *msg, struct nl_cb *callbacks) {
158 struct nl_msg *msg = NULL;
170 * send a nl_msg and return an int status - only supports OK/ERROR responses
173 int netlink_sendrecv(struct nl_msg *ms
[all...]
/external/libnl/include/netlink/route/
H A Dqdisc-modules.h41 struct nl_msg *(*qo_get_opts)(struct rtnl_qdisc *);
43 int (*qo_build_msg)(struct rtnl_qdisc *, struct nl_msg *);
H A Dclassifier.h33 struct nl_msg **);
37 struct nl_msg **);
39 struct nl_msg **);
H A Dqdisc.h36 struct nl_msg **);
41 struct nl_msg **);
46 struct nl_msg **);
67 extern struct nl_msg * rtnl_qdisc_get_opts(struct rtnl_qdisc *);
H A Dclass.h38 struct nl_msg **);
43 struct nl_msg **);
H A Dneighbour.h40 struct nl_msg **);
44 struct nl_msg **);
H A Dclass-modules.h41 struct nl_msg *(*co_get_opts)(struct rtnl_class *);
H A Dclassifier-modules.h46 int (*co_get_opts)(struct rtnl_cls *, struct nl_msg *);
/external/libnl/lib/netfilter/
H A Dlog.c35 uint8_t command, struct nl_msg **result)
37 struct nl_msg *msg;
57 static int send_log_request(struct nl_sock *sk, struct nl_msg *msg)
69 int nfnl_log_build_pf_bind(uint8_t pf, struct nl_msg **result)
76 struct nl_msg *msg;
85 int nfnl_log_build_pf_unbind(uint8_t pf, struct nl_msg **result)
92 struct nl_msg *msg;
102 struct nl_msg **result)
104 struct nl_msg *msg;
162 struct nl_msg **resul
[all...]
H A Dqueue.c37 static int send_queue_request(struct nl_sock *sk, struct nl_msg *msg)
55 uint8_t command, struct nl_msg **result)
57 struct nl_msg *msg;
79 int nfnl_queue_build_pf_bind(uint8_t pf, struct nl_msg **result)
86 struct nl_msg *msg;
95 int nfnl_queue_build_pf_unbind(uint8_t pf, struct nl_msg **result)
102 struct nl_msg *msg;
112 struct nl_msg **result)
114 struct nl_msg *msg;
161 struct nl_msg **resul
[all...]
/external/libnl/include/netlink/netfilter/
H A Dlog.h86 extern int nfnl_log_build_pf_bind(uint8_t, struct nl_msg **);
89 extern int nfnl_log_build_pf_unbind(uint8_t, struct nl_msg **);
93 struct nl_msg **);
97 struct nl_msg **);
101 struct nl_msg **);
H A Dqueue.h64 extern int nfnl_queue_build_pf_bind(uint8_t, struct nl_msg **);
67 extern int nfnl_queue_build_pf_unbind(uint8_t, struct nl_msg **);
71 struct nl_msg **);
76 struct nl_msg **);
81 struct nl_msg **);
H A Dnfnl.h35 extern struct nl_msg * nfnlmsg_alloc_simple(uint8_t, uint8_t, int,
37 extern int nfnlmsg_put(struct nl_msg *, uint32_t, uint32_t,
/external/libnl/include/netlink/fib_lookup/
H A Dlookup.h33 struct nl_msg **);
/external/libnl/include/netlink/route/link/
H A Dinfo-api.h57 int (*io_put_attrs)(struct nl_msg *, struct rtnl_link *);
/external/libnl/lib/
H A Dmsg.c105 * struct nl_msg *msg = nlmsg_alloc();
109 * struct nl_msg *msg = nlmsg_alloc_simple(MY_TYPE, MY_FLAGS);
117 * struct nl_msg *msg = nlmsg_inherit(&hdr);
120 * // can be converted into nl_msg objects using nlmsg_convert(). This
124 * struct nl_msg *msg = nlmsg_convert(nlh_from_nl_sock);
367 static struct nl_msg *__nlmsg_alloc(size_t len)
369 struct nl_msg *nm;
404 struct nl_msg *nlmsg_alloc(void)
412 struct nl_msg *nlmsg_alloc_size(size_t max)
427 struct nl_msg *nlmsg_inheri
[all...]
H A Dattr.c262 * void my_func(struct nl_msg *msg)
277 * struct nl_msg *build_msg(int ifindex, struct nl_addr *lladdr, int mtu)
279 * struct nl_msg *msg;
331 * int parse_message(struct nl_msg *msg)
798 struct nlattr *nla_reserve(struct nl_msg *msg, int attrtype, int attrlen)
837 int nla_put(struct nl_msg *msg, int attrtype, int datalen, const void *data)
864 int nla_put_data(struct nl_msg *msg, int attrtype, struct nl_data *data)
879 int nla_put_addr(struct nl_msg *msg, int attrtype, struct nl_addr *addr)
900 int nla_put_u8(struct nl_msg *msg, int attrtype, uint8_t value)
925 int nla_put_u16(struct nl_msg *ms
[all...]
H A Dhandlers.c50 static int nl_valid_handler_verbose(struct nl_msg *msg, void *arg)
61 static int nl_invalid_handler_verbose(struct nl_msg *msg, void *arg)
72 static int nl_overrun_handler_verbose(struct nl_msg *msg, void *arg)
96 static int nl_valid_handler_debug(struct nl_msg *msg, void *arg)
107 static int nl_finish_handler_debug(struct nl_msg *msg, void *arg)
118 static int nl_msg_in_handler_debug(struct nl_msg *msg, void *arg)
128 static int nl_msg_out_handler_debug(struct nl_msg *msg, void *arg)
138 static int nl_skipped_handler_debug(struct nl_msg *msg, void *arg)
149 static int nl_ack_handler_debug(struct nl_msg *msg, void *arg)
388 int (*func)(struct nl_sock *, struct nl_msg *))
[all...]
/external/libnl/lib/route/
H A Droute.c104 struct nl_msg **result)
106 struct nl_msg *msg;
122 struct nl_msg **result)
130 struct nl_msg *msg;
145 struct nl_msg **result)
152 struct nl_msg *msg;
/external/libnl/include/netlink/genl/
H A Dgenl.h28 extern void * genlmsg_put(struct nl_msg *, uint32_t, uint32_t,

Completed in 1723 milliseconds

1234