Lines Matching defs:nh
82 struct nlmsghdr *nh;
97 for (nh = (struct nlmsghdr *)buf; NLMSG_OK(nh, len);
98 nh = NLMSG_NEXT(nh, len)) {
99 if (nh->nlmsg_pid != nl_pid) {
103 if (nh->nlmsg_seq != seq) {
107 if (nh->nlmsg_flags & NLM_F_MULTI)
109 switch (nh->nlmsg_type) {
111 err = (struct nlmsgerr *)NLMSG_DATA(nh);
115 libbpf_nla_dump_errormsg(nh);
123 ret = _fn(nh, fn, cookie);
140 struct nlmsghdr nh;
151 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg));
152 req.nh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK;
153 req.nh.nlmsg_type = RTM_SETLINK;
154 req.nh.nlmsg_pid = 0;
155 req.nh.nlmsg_seq = ++seq;
161 + NLMSG_ALIGN(req.nh.nlmsg_len));
189 req.nh.nlmsg_len += NLA_ALIGN(nla->nla_len);
191 if (send(sock, &req, req.nh.nlmsg_len, 0) < 0) {