Searched refs:nlh (Results 1 – 5 of 5) sorted by relevance
/tools/lib/bpf/ |
D | netlink.c | 190 static int __dump_link_nlmsg(struct nlmsghdr *nlh, in __dump_link_nlmsg() argument 194 struct ifinfomsg *ifi = NLMSG_DATA(nlh); in __dump_link_nlmsg() 197 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*ifi)); in __dump_link_nlmsg() 288 struct nlmsghdr nlh; in libbpf_nl_get_link() member 291 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)), in libbpf_nl_get_link() 292 .nlh.nlmsg_type = RTM_GETLINK, in libbpf_nl_get_link() 293 .nlh.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST, in libbpf_nl_get_link() 298 req.nlh.nlmsg_seq = seq; in libbpf_nl_get_link() 299 if (send(sock, &req, req.nlh.nlmsg_len, 0) < 0) in libbpf_nl_get_link() 306 static int __dump_class_nlmsg(struct nlmsghdr *nlh, in __dump_class_nlmsg() argument [all …]
|
D | nlattr.c | 80 static inline int nlmsg_len(const struct nlmsghdr *nlh) in nlmsg_len() argument 82 return nlh->nlmsg_len - NLMSG_HDRLEN; in nlmsg_len() 157 int libbpf_nla_dump_errormsg(struct nlmsghdr *nlh) in libbpf_nla_dump_errormsg() argument 169 if (!(nlh->nlmsg_flags & NLM_F_ACK_TLVS)) in libbpf_nla_dump_errormsg() 172 err = (struct nlmsgerr *)NLMSG_DATA(nlh); in libbpf_nla_dump_errormsg() 176 if (!(nlh->nlmsg_flags & NLM_F_CAPPED)) in libbpf_nla_dump_errormsg() 180 alen = (void *)nlh + nlh->nlmsg_len - (void *)attr; in libbpf_nla_dump_errormsg()
|
D | nlattr.h | 104 int libbpf_nla_dump_errormsg(struct nlmsghdr *nlh);
|
/tools/include/uapi/linux/ |
D | netlink.h | 94 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0))) argument 95 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ argument 96 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 97 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ argument 98 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ 99 (nlh)->nlmsg_len <= (len)) 100 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument
|
/tools/testing/vsock/ |
D | vsock_diag_test.c | 180 struct nlmsghdr nlh; in send_req() member 183 .nlh = { in send_req()
|