Home
last modified time | relevance | path

Searched refs:nlmsghdr (Results 1 – 25 of 104) sorted by relevance

12345

/third_party/libnl/include/netlink/
Dmsg.h23 struct nlmsghdr;
56 extern void * nlmsg_data(const struct nlmsghdr *);
57 extern int nlmsg_datalen(const struct nlmsghdr *);
58 extern void * nlmsg_tail(const struct nlmsghdr *);
61 extern struct nlattr * nlmsg_attrdata(const struct nlmsghdr *, int);
62 extern int nlmsg_attrlen(const struct nlmsghdr *, int);
65 extern int nlmsg_valid_hdr(const struct nlmsghdr *, int);
66 extern int nlmsg_ok(const struct nlmsghdr *, int);
67 extern struct nlmsghdr * nlmsg_next(struct nlmsghdr *, int *);
68 extern int nlmsg_parse(struct nlmsghdr *, int, struct nlattr **,
[all …]
Dnetlink-kernel.h40 struct nlmsghdr
186 struct nlmsghdr msg;
213 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
Dnetlink.h41 struct nlmsghdr;
88 struct nlmsghdr *,
93 … struct nlmsghdr *, struct nl_parser_param *),
/third_party/libnl/lib/
Dmsg.c107 void *nlmsg_data(const struct nlmsghdr *nlh) in nlmsg_data()
112 void *nlmsg_tail(const struct nlmsghdr *nlh) in nlmsg_tail()
123 int nlmsg_datalen(const struct nlmsghdr *nlh) in nlmsg_datalen()
128 static int nlmsg_len(const struct nlmsghdr *nlh) in nlmsg_len()
145 struct nlattr *nlmsg_attrdata(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_attrdata()
156 int nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_attrlen()
168 int nlmsg_valid_hdr(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_valid_hdr()
181 int nlmsg_ok(const struct nlmsghdr *nlh, int remaining) in nlmsg_ok()
183 return (remaining >= (int)sizeof(struct nlmsghdr) && in nlmsg_ok()
184 nlh->nlmsg_len >= sizeof(struct nlmsghdr) && in nlmsg_ok()
[all …]
/third_party/musl/src/network/
Dnetlink.h7 struct nlmsghdr { struct
79 #define NLMSG_DATA(nlh) ((void*)((char*)(nlh)+sizeof(struct nlmsghdr)))
80 #define NLMSG_DATALEN(nlh) ((nlh)->nlmsg_len-sizeof(struct nlmsghdr))
82 #define NLMSG_NEXT(nlh) (struct nlmsghdr*)((char*)(nlh)+NETLINK_ALIGN((nlh)->nlmsg_len))
83 #define NLMSG_OK(nlh,end) ((char*)(end)-(char*)(nlh) >= sizeof(struct nlmsghdr))
91 #define NLMSG_RTA(nlh,len) ((void*)((char*)(nlh)+sizeof(struct nlmsghdr)+NETLINK_ALIGN(len)))
94 hidden int __rtnetlink_enumerate(int link_af, int addr_af, int (*cb)(void *ctx, struct nlmsghdr *h)…
Dnetlink.c8 int (*cb)(void *ctx, struct nlmsghdr *h), void *ctx) in __netlink_enumerate()
10 struct nlmsghdr *h; in __netlink_enumerate()
14 struct nlmsghdr nlh; in __netlink_enumerate()
17 struct nlmsghdr reply; in __netlink_enumerate()
42 int __rtnetlink_enumerate(int link_af, int addr_af, int (*cb)(void *ctx, struct nlmsghdr *h), void … in __rtnetlink_enumerate()
/third_party/libnl/lib/genl/
Dgenl.c119 int genlmsg_valid_hdr(struct nlmsghdr *nlh, int hdrlen) in genlmsg_valid_hdr()
153 int genlmsg_validate(struct nlmsghdr *nlh, int hdrlen, int maxtype, in genlmsg_validate()
193 int genlmsg_parse(struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], in genlmsg_parse()
212 struct genlmsghdr *genlmsg_hdr(struct nlmsghdr *nlh) in genlmsg_hdr()
228 const struct nlmsghdr *nlh; in genlmsg_len()
230 nlh = (const struct nlmsghdr *)((const unsigned char *) gnlh - NLMSG_HDRLEN); in genlmsg_len()
353 struct nlmsghdr *nlh; in genlmsg_put()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/
Dpriv_netlink.h50 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
51 #define NLMSG_LENGTH(len) ((len) + NLMSG_ALIGN(sizeof(struct nlmsghdr)))
55 (struct nlmsghdr *) \
57 #define NLMSG_OK(nlh,len) ((len) >= (int) sizeof(struct nlmsghdr) && \
58 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
84 struct nlmsghdr struct
Dnetlink.c26 struct nlmsghdr *h) in netlink_receive_link()
43 struct nlmsghdr *h; in netlink_receive()
57 h = (struct nlmsghdr *) buf; in netlink_receive()
173 struct nlmsghdr hdr; in netlink_send_oper_ifla()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/
Dpriv_netlink.h50 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
51 #define NLMSG_LENGTH(len) ((len) + NLMSG_ALIGN(sizeof(struct nlmsghdr)))
55 (struct nlmsghdr *) \
57 #define NLMSG_OK(nlh,len) ((len) >= (int) sizeof(struct nlmsghdr) && \
58 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
84 struct nlmsghdr struct
Dnetlink.c26 struct nlmsghdr *h) in netlink_receive_link()
43 struct nlmsghdr *h; in netlink_receive()
57 h = (struct nlmsghdr *) buf; in netlink_receive()
173 struct nlmsghdr hdr; in netlink_send_oper_ifla()
/third_party/ltp/lib/
Dtst_crypto.c40 struct nlmsghdr *nh; in tst_crypto_recv_ack()
44 for (nh = (struct nlmsghdr *) buf; in tst_crypto_recv_ack()
71 struct nlmsghdr nh = { in tst_crypto_add_alg()
72 .nlmsg_len = sizeof(struct nlmsghdr) + sizeof(*alg), in tst_crypto_add_alg()
89 struct nlmsghdr nh = { in tst_crypto_del_alg()
90 .nlmsg_len = sizeof(struct nlmsghdr) + sizeof(*alg), in tst_crypto_del_alg()
Dtst_rtnetlink.c24 struct nlmsghdr *curmsg;
49 ctx->curmsg = (struct nlmsghdr *)(buf + offset); in tst_rtnl_grow_buffer()
137 struct nlmsghdr eom = { .nlmsg_type = NLMSG_DONE }; in tst_rtnl_send()
171 struct nlmsghdr *ptr; in tst_rtnl_recv()
211 ptr = (struct nlmsghdr *)buffer; in tst_rtnl_recv()
227 ptr = (struct nlmsghdr *)buffer; in tst_rtnl_recv()
243 struct tst_rtnl_context *ctx, const struct nlmsghdr *header, in tst_rtnl_add_message()
258 ctx->curmsg = (struct nlmsghdr *)ctx->buffer; in tst_rtnl_add_message()
365 struct nlmsghdr *msg = (struct nlmsghdr *)ctx->buffer; in tst_rtnl_check_acks()
/third_party/libnl/include/netlink/genl/
Dgenl.h30 extern int genlmsg_valid_hdr(struct nlmsghdr *, int);
31 extern int genlmsg_validate(struct nlmsghdr *, int, int,
33 extern int genlmsg_parse(struct nlmsghdr *, int, struct nlattr **,
36 genlmsg_hdr(struct nlmsghdr *);
/third_party/libnl/include/netlink/netfilter/
Dnfnl.h28 extern uint8_t nfnlmsg_subsys(struct nlmsghdr *);
29 extern uint8_t nfnlmsg_subtype(struct nlmsghdr *);
30 extern uint8_t nfnlmsg_family(struct nlmsghdr *);
31 extern uint16_t nfnlmsg_res_id(struct nlmsghdr *);
/third_party/libnl/include/linux-private/linux/
Dnetlink.h44 struct nlmsghdr { struct
91 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
96 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
97 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
98 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
111 struct nlmsghdr msg;
/third_party/libnl/lib/netfilter/
Dnfnl.c135 uint8_t nfnlmsg_subsys(struct nlmsghdr *nlh) in nfnlmsg_subsys()
144 uint8_t nfnlmsg_subtype(struct nlmsghdr *nlh) in nfnlmsg_subtype()
153 uint8_t nfnlmsg_family(struct nlmsghdr *nlh) in nfnlmsg_family()
164 uint16_t nfnlmsg_res_id(struct nlmsghdr *nlh) in nfnlmsg_res_id()
238 struct nlmsghdr *nlh; in nfnlmsg_put()
/third_party/iptables/libipq/
Dlibipq.c129 struct nlmsghdr *nlh; in ipq_netlink_recvfrom()
185 nlh = (struct nlmsghdr *)buf; in ipq_netlink_recvfrom()
272 struct nlmsghdr nlh; in ipq_set_mode()
298 return ((struct nlmsghdr*)buf)->nlmsg_type; in ipq_message_type()
303 struct nlmsghdr *h = (struct nlmsghdr *)buf; in ipq_get_msgerr()
310 return NLMSG_DATA((struct nlmsghdr *)(buf)); in ipq_get_packet()
321 struct nlmsghdr nlh; in ipq_set_verdict()
/third_party/libnl/python/netlink/
Dcapi.i202 extern void * nlmsg_data(const struct nlmsghdr *);
203 extern int nlmsg_datalen(const struct nlmsghdr *);
204 extern void * nlmsg_tail(const struct nlmsghdr *);
207 extern struct nlattr * nlmsg_attrdata(const struct nlmsghdr *, int);
208 extern int nlmsg_attrlen(const struct nlmsghdr *, int);
211 extern int nlmsg_valid_hdr(const struct nlmsghdr *, int);
212 extern int nlmsg_ok(const struct nlmsghdr *, int);
213 extern struct nlmsghdr * nlmsg_next(struct nlmsghdr *, int *);
214 extern int nlmsg_parse(struct nlmsghdr *, int, struct nlattr **,
216 extern struct nlattr * nlmsg_find_attr(struct nlmsghdr *, int, int);
[all …]
/third_party/iptables/iptables/
Dnft-cache.c75 static int genid_cb(const struct nlmsghdr *nlh, void *data) in genid_cb()
99 struct nlmsghdr *nlh; in mnl_genid_get()
111 static int nftnl_table_list_cb(const struct nlmsghdr *nlh, void *data) in nftnl_table_list_cb()
140 struct nlmsghdr *nlh; in fetch_table_cache()
249 static int nftnl_chain_list_cb(const struct nlmsghdr *nlh, void *data) in nftnl_chain_list_cb()
289 static int nftnl_set_list_cb(const struct nlmsghdr *nlh, void *data) in nftnl_set_list_cb()
329 static int set_elem_cb(const struct nlmsghdr *nlh, void *data) in set_elem_cb()
351 struct nlmsghdr *nlh; in set_fetch_elem_cb()
372 struct nlmsghdr *nlh; in fetch_set_cache()
429 struct nlmsghdr *nlh; in __fetch_chain_cache()
[all …]
/third_party/selinux/libselinux/src/
Davc_internal.c149 struct nlmsghdr *nlh = (struct nlmsghdr *)buf; in avc_netlink_receive()
205 struct nlmsghdr *nlh = (struct nlmsghdr *)buf; in avc_netlink_process()
/third_party/ltp/testcases/lib/
Dtst_net_iface_prefix.c52 struct nlmsghdr nlhdr; in read_iface_prefix()
56 struct nlmsghdr *retmsg; in read_iface_prefix()
68 retmsg = (struct nlmsghdr *)buf; in read_iface_prefix()
/third_party/ltp/testcases/kernel/containers/netns/
Dnetns_netlink.c49 struct nlmsghdr *nlh; in child_func()
68 nlh = (struct nlmsghdr *) buffer; in child_func()
/third_party/ltp/testcases/kernel/crypto/
Dcrypto_user01.c116 static void validate_one_alg(const struct nlmsghdr *nh) in validate_one_alg()
136 const struct nlmsghdr *nh; in validate_alg_list()
159 struct nlmsghdr nh = { in run()
/third_party/ltp/include/
Dtst_netlink.h25 int fd, const struct nlmsghdr *nh, in safe_netlink_send()
30 {(struct nlmsghdr *)nh, sizeof(*nh)}, in safe_netlink_send()

12345