Home
last modified time | relevance | path

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

/foundation/communication/dhcp/services/dhcp_client/src/
H A Ddhcp_ipv6_event.cpp118 struct nlmsghdr *nlh = (struct nlmsghdr*)msg; in parseNewneighMessage() local
119 struct ndmsg *ndm = (struct ndmsg *)NLMSG_DATA(nlh); in parseNewneighMessage()
126 int rtl = static_cast<int>(RTM_PAYLOAD(nlh)); in parseNewneighMessage()
151 struct nlmsghdr *nlh = (struct nlmsghdr *)buff; in fillRouteData() local
152 nlh->nlmsg_len = NLMSG_SPACE(static_cast<unsigned int>(sizeof(struct ndmsg))); in fillRouteData()
153 nlh->nlmsg_type = RTM_GETNEIGH; in fillRouteData()
154 nlh->nlmsg_flags = NLM_F_REQUEST | NLM_F_DUMP; in fillRouteData()
155 nlh->nlmsg_seq = 1; in fillRouteData()
156 nlh->nlmsg_pid = static_cast<unsigned int>(getpid()); in fillRouteData()
157 len = nlh in fillRouteData()
170 struct nlmsghdr *nlh = (struct nlmsghdr*)data; handleKernelEvent() local
[all...]
/foundation/communication/dsoftbus/adapter/common/bus_center/network/
H A Dlnn_netlink_monitor.c46 #define NLMSG_OK(nlh, len) \
47 (((len) >= (int32_t)(sizeof(struct nlmsghdr))) && (((nlh)->nlmsg_len) >= sizeof(struct nlmsghdr)) && \
48 ((int32_t)((nlh)->nlmsg_len) <= (len)))
99 static void ProcessAddrEvent(struct nlmsghdr *nlh) in ProcessAddrEvent() argument
101 if (nlh->nlmsg_len < NLMSG_LENGTH(sizeof(struct ifaddrmsg))) { in ProcessAddrEvent()
105 struct ifaddrmsg *ifa = (struct ifaddrmsg *)NLMSG_DATA(nlh); in ProcessAddrEvent()
125 static void ProcessLinkEvent(struct nlmsghdr *nlh) in ProcessLinkEvent() argument
129 struct ifinfomsg *ifinfo = (struct ifinfomsg *)NLMSG_DATA(nlh); in ProcessLinkEvent()
132 len = (int32_t)nlh->nlmsg_len - NLMSG_SPACE(sizeof(*ifinfo)); in ProcessLinkEvent()
162 struct nlmsghdr *nlh in NetlinkOnDataEvent() local
[all...]
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/
H A Dnetlink_socket_diag.cpp188 for (nlmsghdr *nlh = reinterpret_cast<nlmsghdr *>(buf); NLMSG_OK(nlh, len); nlh = NLMSG_NEXT(nlh, len)) { in ProcessSockDiagDumpResponse()
189 if (nlh->nlmsg_type == NLMSG_ERROR) { in ProcessSockDiagDumpResponse()
190 nlmsgerr *err = reinterpret_cast<nlmsgerr *>(NLMSG_DATA(nlh)); in ProcessSockDiagDumpResponse()
194 } else if (nlh->nlmsg_type == NLMSG_DONE) { in ProcessSockDiagDumpResponse()
197 const auto *msg = reinterpret_cast<inet_diag_msg *>(NLMSG_DATA(nlh)); in ProcessSockDiagDumpResponse()
328 for (nlmsghdr *nlh = reinterpret_cast<nlmsghdr *>(buf); NLMSG_OK(nlh, le in ProcessSockDiagUidDumpResponse()
[all...]
/foundation/communication/dsoftbus/components/nstackx/nstackx_congestion/platform/unix/qdisc/
H A Dnstackx_nlmsg.c64 struct nlmsghdr nlh = { in SendNetlinkRequest() local
74 .iov_base = &nlh, in SendNetlinkRequest()
75 .iov_len = sizeof(nlh) in SendNetlinkRequest()
/foundation/communication/dhcp/test/unittest/services/dhcp_client/
H A Ddhcp_ipv6_client_test.cpp334 nlmsghdr* nlh = reinterpret_cast<nlmsghdr*>(msg); in HWTEST_F() local
338 nlh->nlmsg_type = RTM_NEWNEIGH; in HWTEST_F()

Completed in 4 milliseconds