Home
last modified time | relevance | path

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

123

/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/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/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/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/libbpf/include/uapi/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/selinux/libselinux/src/
Davc_internal.c148 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/
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()
Dtst_ns_ifmove.c31 struct nlmsghdr nh;
/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/testcases/cve/
Dcve-2017-16939.c32 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/
Dtst_netlink.h25 int fd, const struct nlmsghdr *nh, in safe_netlink_send()
30 {(struct nlmsghdr *)nh, sizeof(*nh)}, in safe_netlink_send()
Dtst_rtnetlink.h18 struct nlmsghdr *header;
66 struct tst_rtnl_context *ctx, const struct nlmsghdr *header,
/third_party/ltp/testcases/kernel/containers/netns/
Dnetns_netlink.c48 struct nlmsghdr *nlh; in child_func()
67 nlh = (struct nlmsghdr *) buffer; in child_func()
/third_party/toybox/toys/pending/
Dip.c104 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/
Dnlattr.h58 struct nlmsghdr nh;
129 int libbpf_nla_dump_errormsg(struct nlmsghdr *nlh);
Dnlattr.c81 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()
Dnetlink.c28 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/
Dcgroup_regression_getdelays.c86 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/
Dops-netlink.c73 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/
Dpec_listener.c61 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/
Dvlan_full.c635 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()

123