Searched refs:nh (Results 1 - 2 of 2) sorted by relevance

/system/core/libsysutils/src/
H A DNetlinkEvent.cpp77 const struct nlmsghdr *nh = (struct nlmsghdr *) buffer; local
79 while (NLMSG_OK(nh, sz) && (nh->nlmsg_type != NLMSG_DONE)) {
81 if (nh->nlmsg_type == RTM_NEWLINK) {
82 int len = nh->nlmsg_len - sizeof(*nh);
90 ifi = (ifinfomsg *)NLMSG_DATA(nh);
97 len = NLMSG_PAYLOAD(nh, sizeof(*ifi));
115 } else if (nh->nlmsg_type == QLOG_NL_EVENT) {
118 size_t len = nh
[all...]
/system/core/libnetutils/
H A Difc_utils.c263 struct nlmsghdr *nh; local
328 nh = (struct nlmsghdr *) buf;
329 if (!NLMSG_OK(nh, (unsigned) len) || nh->nlmsg_type != NLMSG_ERROR) {
332 err = NLMSG_DATA(nh);

Completed in 66 milliseconds