Home
last modified time | relevance | path

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

/system/core/libsysutils/src/
DNetlinkEvent.cpp109 static bool checkRtNetlinkLength(const struct nlmsghdr *nh, size_t size) { in checkRtNetlinkLength() argument
110 if (nh->nlmsg_len < NLMSG_LENGTH(size)) { in checkRtNetlinkLength()
111 SLOGE("Got a short %s message\n", rtMessageName(nh->nlmsg_type)); in checkRtNetlinkLength()
133 bool NetlinkEvent::parseIfInfoMessage(const struct nlmsghdr *nh) { in parseIfInfoMessage() argument
134 struct ifinfomsg *ifi = (struct ifinfomsg *) NLMSG_DATA(nh); in parseIfInfoMessage()
135 if (!checkRtNetlinkLength(nh, sizeof(*ifi))) in parseIfInfoMessage()
142 int len = IFLA_PAYLOAD(nh); in parseIfInfoMessage()
161 bool NetlinkEvent::parseIfAddrMessage(const struct nlmsghdr *nh) { in parseIfAddrMessage() argument
162 struct ifaddrmsg *ifaddr = (struct ifaddrmsg *) NLMSG_DATA(nh); in parseIfAddrMessage()
167 if (!checkRtNetlinkLength(nh, sizeof(*ifaddr))) in parseIfAddrMessage()
[all …]
/system/core/include/sysutils/
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/libnetutils/
Difc_utils.c267 struct nlmsghdr *nh; in ifc_act_on_address() local
332 nh = (struct nlmsghdr *) buf; in ifc_act_on_address()
333 if (!NLMSG_OK(nh, (unsigned) len) || nh->nlmsg_type != NLMSG_ERROR) { in ifc_act_on_address()
336 err = NLMSG_DATA(nh); in ifc_act_on_address()