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

/system/core/libsysutils/src/
H A DNetlinkEvent.cpp106 static bool checkRtNetlinkLength(const struct nlmsghdr *nh, size_t size) { argument
107 if (nh->nlmsg_len < NLMSG_LENGTH(size)) {
108 SLOGE("Got a short %s message\n", rtMessageName(nh->nlmsg_type));
130 bool NetlinkEvent::parseIfInfoMessage(const struct nlmsghdr *nh) { argument
131 struct ifinfomsg *ifi = (struct ifinfomsg *) NLMSG_DATA(nh);
132 if (!checkRtNetlinkLength(nh, sizeof(*ifi)))
139 int len = IFLA_PAYLOAD(nh);
158 bool NetlinkEvent::parseIfAddrMessage(const struct nlmsghdr *nh) { argument
159 struct ifaddrmsg *ifaddr = (struct ifaddrmsg *) NLMSG_DATA(nh);
164 if (!checkRtNetlinkLength(nh, sizeo
257 parseUlogPacketMessage(const struct nlmsghdr *nh) argument
274 parseNfPacketMessage(struct nlmsghdr *nh) argument
309 parseRtMessage(const struct nlmsghdr *nh) argument
401 parseNdUserOptMessage(const struct nlmsghdr *nh) argument
519 struct nlmsghdr *nh; local
[all...]
/system/core/libnetutils/
H A Difc_utils.c267 struct nlmsghdr *nh; local
332 nh = (struct nlmsghdr *) buf;
333 if (!NLMSG_OK(nh, (unsigned) len) || nh->nlmsg_type != NLMSG_ERROR) {
336 err = NLMSG_DATA(nh);

Completed in 84 milliseconds