/third_party/libnl/include/netlink/ |
D | msg.h | 23 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 …]
|
D | netlink-kernel.h | 40 struct nlmsghdr 186 struct nlmsghdr msg; 213 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
|
D | netlink.h | 41 struct nlmsghdr; 88 struct nlmsghdr *, 93 … struct nlmsghdr *, struct nl_parser_param *),
|
/third_party/libnl/lib/ |
D | msg.c | 107 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/ |
D | netlink.h | 7 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)…
|
D | netlink.c | 8 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/ |
D | genl.c | 119 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/ |
D | priv_netlink.h | 50 #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
|
D | netlink.c | 26 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/ |
D | priv_netlink.h | 50 #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
|
D | netlink.c | 26 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/ |
D | tst_crypto.c | 40 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()
|
D | tst_rtnetlink.c | 24 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/ |
D | genl.h | 30 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/ |
D | nfnl.h | 28 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/ |
D | netlink.h | 44 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/ |
D | nfnl.c | 135 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/ |
D | libipq.c | 129 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/ |
D | capi.i | 202 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/ |
D | nft-cache.c | 75 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/ |
D | avc_internal.c | 149 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/ |
D | tst_net_iface_prefix.c | 52 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/ |
D | netns_netlink.c | 49 struct nlmsghdr *nlh; in child_func() 68 nlh = (struct nlmsghdr *) buffer; in child_func()
|
/third_party/ltp/testcases/kernel/crypto/ |
D | crypto_user01.c | 116 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/ |
D | tst_netlink.h | 25 int fd, const struct nlmsghdr *nh, in safe_netlink_send() 30 {(struct nlmsghdr *)nh, sizeof(*nh)}, in safe_netlink_send()
|