Lines Matching refs:nlmsg_len

156     req.nlh.nlmsg_len = sizeof(req);  in send_nlmesg()
439 if ((int)(NLMSG_ALIGN(n->nlmsg_len) + len) > maxlen) return; in add_string_to_rtattr()
440 rta = (struct rtattr*)(((char*)n) + NLMSG_ALIGN(n->nlmsg_len)); in add_string_to_rtattr()
444 n->nlmsg_len = NLMSG_ALIGN(n->nlmsg_len) + len; in add_string_to_rtattr()
454 ((struct rtattr *) (((void *) (nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len)))
584 request.mhdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in linkupdate()
634 send_nlmesg(0, 0, 0, (void *)&request, request.mhdr.nlmsg_len); in linkupdate()
812 int len = h->nlmsg_len - NLMSG_LENGTH(sizeof(*iface)); in get_link_info()
925 request.mhdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in link_show()
962 if ((len = h->nlmsg_len - NLMSG_LENGTH(sizeof(*ifa))) < 0) { in print_addrinfo()
987 send_nlmesg(RTM_DELADDR, 0, 0, h, h->nlmsg_len); in print_addrinfo()
1080 req.nlm.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifaddrmsg)); in ipaddrupdate()
1212 send_nlmesg(RTM_NEWADDR, 0, AF_UNSPEC, (void *)&req, req.nlm.nlmsg_len); in ipaddrupdate()
1358 int len1 = addr_ptr->nlmsg_len - NLMSG_LENGTH(sizeof(*addressInfo)); in ipaddr_print()
1472 int32_t tvar, msglen = mhdr->nlmsg_len - NLMSG_LENGTH(sizeof(struct rtmsg)); in display_route_info()
1597 memcpy(toybuf, (void*)mhdr,mhdr->nlmsg_len); in display_route_info()
1603 int tvar, msglen = mhdr->nlmsg_len - NLMSG_LENGTH(sizeof(struct rtmsg)); in display_route_info()
1621 if (send(sockfd , (void*)mhdr, mhdr->nlmsg_len, 0) < 0) in display_route_info()
1650 if (mhdr->nlmsg_len < NLMSG_LENGTH(sizeof(struct nlmsgerr))) in display_route_info()
1683 request.mhdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); in route_get()
1734 int tvar, msglen = mhdr->nlmsg_len - NLMSG_LENGTH(sizeof(struct rtmsg)); in route_get()
1757 send_nlmesg(0, 0, 0, mhdr, mhdr->nlmsg_len); in route_get()
1879 request.mhdr.nlmsg_len = NLMSG_LENGTH(sizeof (struct rtmsg)); in route_show_flush()
1915 req.hdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); in route_update()
2093 request.mhdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); in ruleupdate()
2226 int32_t tvar, msglen = mhdr->nlmsg_len - NLMSG_LENGTH(sizeof(struct rtmsg)); in show_rules()
2712 if (mhdr->nlmsg_len < NLMSG_LENGTH(sizeof(struct nlmsgerr))) in filter_nlmesg()