/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/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/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/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/libbpf/include/uapi/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/selinux/libselinux/src/ |
D | avc_internal.c | 148 struct nlmsghdr *nlh = (struct nlmsghdr *)buf; in avc_netlink_receive() 204 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()
|
D | tst_ns_ifmove.c | 31 struct nlmsghdr nh;
|
/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/testcases/cve/ |
D | cve-2017-16939.c | 32 static struct nlmsghdr xfrm_msg; 49 static void send_nlmsg(int fd, struct nlmsghdr *msg, struct sockaddr_nl *addr) in send_nlmsg()
|
/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()
|
D | tst_rtnetlink.h | 18 struct nlmsghdr *header; 66 struct tst_rtnl_context *ctx, const struct nlmsghdr *header,
|
/third_party/ltp/testcases/kernel/containers/netns/ |
D | netns_netlink.c | 48 struct nlmsghdr *nlh; in child_func() 67 nlh = (struct nlmsghdr *) buffer; in child_func()
|
/third_party/toybox/toys/pending/ |
D | ip.c | 104 static int filter_nlmesg(int (*fun)(struct nlmsghdr *mhdr, char **), char **); 165 struct nlmsghdr nlh; in send_nlmesg() 478 static void add_string_to_rtattr(struct nlmsghdr *n, int maxlen, in add_string_to_rtattr() 554 static void vlan_parse_opt(char **argv, struct nlmsghdr *n, unsigned int size) in vlan_parse_opt() 599 struct nlmsghdr mhdr; in linkupdate() 853 static int get_link_info(struct nlmsghdr* h,struct linkdata* link,char **argv) in get_link_info() 944 static int display_link_info(struct nlmsghdr *mhdr, char **argv) in display_link_info() 963 struct nlmsghdr mhdr; in link_show() 999 static int print_addrinfo(struct nlmsghdr *h, int flag_l) in print_addrinfo() 1109 struct nlmsghdr *addr_ptr = NULL; in ipaddrupdate() [all …]
|
/third_party/libbpf/src/ |
D | nlattr.h | 58 struct nlmsghdr nh; 129 int libbpf_nla_dump_errormsg(struct nlmsghdr *nlh);
|
D | nlattr.c | 81 static inline int nlmsg_len(const struct nlmsghdr *nlh) in nlmsg_len() 158 int libbpf_nla_dump_errormsg(struct nlmsghdr *nlh) in libbpf_nla_dump_errormsg()
|
D | netlink.c | 28 typedef int (*__dump_nlmsg_t)(struct nlmsghdr *nlmsg, libbpf_dump_nlmsg_t, 143 struct nlmsghdr *nh; in libbpf_netlink_recv() 174 for (nh = (struct nlmsghdr *)iov.iov_base; NLMSG_OK(nh, len); in libbpf_netlink_recv() 249 static int parse_genl_family_id(struct nlmsghdr *nh, libbpf_dump_nlmsg_t fn, in parse_genl_family_id() 344 static int __dump_link_nlmsg(struct nlmsghdr *nlh, in __dump_link_nlmsg() 405 static int parse_xdp_features(struct nlmsghdr *nh, libbpf_dump_nlmsg_t fn, in parse_xdp_features() 681 static int get_tc_info(struct nlmsghdr *nh, libbpf_dump_nlmsg_t fn, in get_tc_info()
|
/third_party/ltp/testcases/kernel/controllers/cgroup/ |
D | cgroup_regression_getdelays.c | 86 struct nlmsghdr n; 168 struct nlmsghdr n; in get_family_id() 431 sizeof(struct nlmsghdr), msg.n.nlmsg_len, rep_len); in main()
|
/third_party/libwebsockets/lib/roles/netlink/ |
D | ops-netlink.c | 73 struct nlmsghdr *h; in rops_handle_POLLIN_netlink() 101 h = (struct nlmsghdr *)s; in rops_handle_POLLIN_netlink() 469 struct nlmsghdr hdr;
|
/third_party/ltp/testcases/kernel/connectors/pec/ |
D | pec_listener.c | 61 struct nlmsghdr *nlhdr; 177 static void process_event(struct nlmsghdr *nlhdr) in process_event()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/ |
D | vlan_full.c | 635 vlan_read_ifnames(struct nlmsghdr *h, size_t len, int del, in vlan_read_ifnames() 703 struct nlmsghdr *h; in vlan_event_receive() 716 h = (struct nlmsghdr *) buf; in vlan_event_receive()
|