Home
last modified time | relevance | path

Searched refs:hdrMsg (Results 1 - 5 of 5) sorted by relevance

/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/wrapper/
H A Dwrapper_decoder.cpp132 bool CheckRtNetlinkLength(const nlmsghdr *hdrMsg, size_t size) in CheckRtNetlinkLength() argument
134 int32_t type = hdrMsg->nlmsg_type; in CheckRtNetlinkLength()
135 bool ret = hdrMsg->nlmsg_len >= static_cast<uint32_t>(NLMSG_LENGTH(int(size))); in CheckRtNetlinkLength()
244 const nlmsghdr *hdrMsg = nullptr; in DecodeBinary() local
246 for (hdrMsg = reinterpret_cast<const nlmsghdr *>(buffer); in DecodeBinary()
247 NLMSG_OK(hdrMsg, (unsigned)buffSize) && (hdrMsg->nlmsg_type != NLMSG_DONE); in DecodeBinary()
248 hdrMsg = NLMSG_NEXT(hdrMsg, buffSize)) { in DecodeBinary()
249 if (CastNameToStr(hdrMsg in DecodeBinary()
280 InterpreteInfoMsg(const nlmsghdr *hdrMsg) InterpreteInfoMsg() argument
312 InterpreteUlogMsg(const nlmsghdr *hdrMsg) InterpreteUlogMsg() argument
327 InterpreteAddressMsg(const nlmsghdr *hdrMsg) InterpreteAddressMsg() argument
441 InterpreteRtMsg(const nlmsghdr *hdrMsg) InterpreteRtMsg() argument
489 CheckRtParam(const nlmsghdr *hdrMsg, uint8_t type) CheckRtParam() argument
[all...]
/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/wrapper/
H A Dwrapper_decoder.h55 bool InterpreteInfoMsg(const nlmsghdr *hdrMsg);
56 bool InterpreteUlogMsg(const nlmsghdr *hdrMsg);
57 bool InterpreteAddressMsg(const nlmsghdr *hdrMsg);
58 bool InterpreteRtMsg(const nlmsghdr *hdrMsg);
65 rtmsg *CheckRtParam(const nlmsghdr *hdrMsg, uint8_t type);
/foundation/communication/dhcp/services/dhcp_client/src/
H A Ddhcp_ipv6_event.cpp71 struct nlmsghdr *hdrMsg = (struct nlmsghdr*)msg; in parseNDRouteMessage() local
72 struct rtmsg* rtMsg = reinterpret_cast<struct rtmsg*>(NLMSG_DATA(hdrMsg)); in parseNDRouteMessage()
73 if (hdrMsg->nlmsg_len < sizeof(struct rtmsg)) { in parseNDRouteMessage()
74 DHCP_LOGE("invliad msglen:%{public}d", hdrMsg->nlmsg_len); in parseNDRouteMessage()
86 size_t size = RTM_PAYLOAD(hdrMsg); in parseNDRouteMessage()
/foundation/communication/dhcp/test/unittest/services/dhcp_client/
H A Ddhcp_ipv6_client_test.cpp294 nlmsghdr hdrMsg; in HWTEST_F() local
296 hdrMsg.nlmsg_len = sizeof(rtmsg); in HWTEST_F()
302 ipv6Client->parseNDRouteMessage(&hdrMsg); in HWTEST_F()
309 nlmsghdr hdrMsg; in HWTEST_F() local
311 hdrMsg.nlmsg_len = sizeof(rtmsg); in HWTEST_F()
317 ipv6Client->parseNDRouteMessage(&hdrMsg); in HWTEST_F()
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_wrapper_test/
H A Dwrapper_decoder_test.cpp354 nlmsghdr *hdrMsg = nullptr; in HWTEST_F() local
355 auto ret = decoder->InterpreteInfoMsg(hdrMsg); in HWTEST_F()
365 auto result = decoder->CheckRtParam(hdrMsg, type); in HWTEST_F()

Completed in 4 milliseconds