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

/system/core/include/sysutils/
H A DNetlinkEvent.h57 bool parseIfInfoMessage(const struct nlmsghdr *nh);
58 bool parseIfAddrMessage(const struct nlmsghdr *nh);
59 bool parseUlogPacketMessage(const struct nlmsghdr *nh);
60 bool parseRtMessage(const struct nlmsghdr *nh);
61 bool parseNdUserOptMessage(const struct nlmsghdr *nh);
/system/core/libsysutils/src/
H A DNetlinkEvent.cpp109 static bool checkRtNetlinkLength(const struct nlmsghdr *nh, size_t size) { argument
110 if (nh->nlmsg_len < NLMSG_LENGTH(size)) {
111 SLOGE("Got a short %s message\n", rtMessageName(nh->nlmsg_type));
133 bool NetlinkEvent::parseIfInfoMessage(const struct nlmsghdr *nh) { argument
134 struct ifinfomsg *ifi = (struct ifinfomsg *) NLMSG_DATA(nh);
135 if (!checkRtNetlinkLength(nh, sizeof(*ifi)))
142 int len = IFLA_PAYLOAD(nh);
161 bool NetlinkEvent::parseIfAddrMessage(const struct nlmsghdr *nh) { argument
162 struct ifaddrmsg *ifaddr = (struct ifaddrmsg *) NLMSG_DATA(nh);
167 if (!checkRtNetlinkLength(nh, sizeo
260 parseUlogPacketMessage(const struct nlmsghdr *nh) argument
277 parseRtMessage(const struct nlmsghdr *nh) argument
369 parseNdUserOptMessage(const struct nlmsghdr *nh) argument
481 const 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 61 milliseconds