Home
last modified time | relevance | path

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

/system/core/libsysutils/src/
DNetlinkEvent.cpp101 static bool checkRtNetlinkLength(const struct nlmsghdr *nh, size_t size) { in checkRtNetlinkLength() argument
102 if (nh->nlmsg_len < NLMSG_LENGTH(size)) { in checkRtNetlinkLength()
103 SLOGE("Got a short %s message\n", rtMessageName(nh->nlmsg_type)); in checkRtNetlinkLength()
125 bool NetlinkEvent::parseIfInfoMessage(const struct nlmsghdr *nh) { in parseIfInfoMessage() argument
126 struct ifinfomsg *ifi = (struct ifinfomsg *) NLMSG_DATA(nh); in parseIfInfoMessage()
127 if (!checkRtNetlinkLength(nh, sizeof(*ifi))) in parseIfInfoMessage()
134 int len = IFLA_PAYLOAD(nh); in parseIfInfoMessage()
159 bool NetlinkEvent::parseIfAddrMessage(const struct nlmsghdr *nh) { in parseIfAddrMessage() argument
160 struct ifaddrmsg *ifaddr = (struct ifaddrmsg *) NLMSG_DATA(nh); in parseIfAddrMessage()
165 if (!checkRtNetlinkLength(nh, sizeof(*ifaddr))) in parseIfAddrMessage()
[all …]
/system/core/libsysutils/include/sysutils/
DNetlinkEvent.h61 bool parseIfInfoMessage(const struct nlmsghdr *nh);
62 bool parseIfAddrMessage(const struct nlmsghdr *nh);
63 bool parseUlogPacketMessage(const struct nlmsghdr *nh);
64 bool parseNfPacketMessage(struct nlmsghdr *nh);
65 bool parseRtMessage(const struct nlmsghdr *nh);
66 bool parseNdUserOptMessage(const struct nlmsghdr *nh);
/system/netd/server/
DNetdHwService.cpp97 const char* nh = nexthop.c_str(); in maybeNullString() local
98 if (nh && !*nh) { in maybeNullString()
99 nh = nullptr; in maybeNullString()
101 return nh; in maybeNullString()
/system/extras/multinetwork/
Dcommon.cpp42 net_handle_t nh; in parseNetworkHandle() local
45 nh = strtoull(arg, &end, 0); in parseNetworkHandle()
47 *nethandle = nh; in parseNetworkHandle()
/system/hardware/interfaces/net/netd/1.0/vts/functional/
DVtsHalNetNetdV1_0TargetTest.cpp83 const uint64_t nh = 0x6600FACADE; in TEST_F() local
85 Return<INetd::StatusCode> retStatus = netd->destroyOemNetwork(nh); in TEST_F()
/system/core/libnetutils/
Difc_utils.c274 struct nlmsghdr *nh; in ifc_act_on_address() local
355 nh = (struct nlmsghdr *) buf; in ifc_act_on_address()
356 if (!NLMSG_OK(nh, (unsigned) len) || nh->nlmsg_type != NLMSG_ERROR) { in ifc_act_on_address()
359 err = NLMSG_DATA(nh); in ifc_act_on_address()