Home
last modified time | relevance | path

Searched refs:nlmsg_type (Results 1 – 25 of 60) sorted by relevance

123

/aosp12/hardware/interfaces/automotive/can/1.0/default/libnl++/protocols/generic/
H A DGeneric.cpp28 nlmsgtype_t nlmsg_type) { in getMessageDescriptor() argument
29 auto desc = NetlinkProtocol::getMessageDescriptor(nlmsg_type); in getMessageDescriptor()
32 auto it = mFamilyRegister.find(nlmsg_type); in getMessageDescriptor()
34 return *(mFamilyRegister[nlmsg_type] = std::make_shared<Unknown>(nlmsg_type)); in getMessageDescriptor()
H A DGeneric.h33 nlmsgtype_t nlmsg_type);
/aosp12/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/
H A DStructNlMsgHdr.java92 struct.nlmsg_type = byteBuffer.getShort(); in parse()
105 public short nlmsg_type; field in StructNlMsgHdr
112 nlmsg_type = 0; in StructNlMsgHdr()
123 byteBuffer.putShort(nlmsg_type); in pack()
144 final String typeStr = "" + nlmsg_type in toString()
146 ? "" : NetlinkConstants.stringForNlMsgType(nlmsg_type, nlFamily)) in toString()
H A DNetlinkMessage.java64 if (nlmsghdr.nlmsg_type <= NetlinkConstants.NLMSG_MAX_RESERVED) { in parse()
105 switch (nlmsghdr.nlmsg_type) { in parseCtlMessage()
120 switch (nlmsghdr.nlmsg_type) { in parseRtMessage()
134 switch (nlmsghdr.nlmsg_type) { in parseInetDiagMessage()
144 switch (nlmsghdr.nlmsg_type) { in parseNfMessage()
H A DInetDiagMessage.java92 nlMsgHdr.nlmsg_type = SOCK_DIAG_BY_FAMILY; in InetDiagReqV2()
125 if (hdr.nlmsg_type == NetlinkConstants.NLMSG_DONE) { in lookupUidByFamily()
H A DRtNetlinkNeighborMessage.java107 nlmsghdr.nlmsg_type = NetlinkConstants.RTM_GETNEIGH; in newGetNeighborsRequest()
125 nlmsghdr.nlmsg_type = NetlinkConstants.RTM_NEWNEIGH; in newNewNeighborMessage()
/aosp12/system/core/libsysutils/src/
H A DNetlinkEvent.cpp188 int type = nh->nlmsg_type; in parseIfAddrMessage()
348 uint8_t type = nh->nlmsg_type; in parseRtMessage()
567 if (!rtMessageName(nh->nlmsg_type)) { in parseBinaryNetlinkMessage()
572 if (nh->nlmsg_type == RTM_NEWLINK) { in parseBinaryNetlinkMessage()
576 } else if (nh->nlmsg_type == LOCAL_QLOG_NL_EVENT) { in parseBinaryNetlinkMessage()
580 } else if (nh->nlmsg_type == RTM_NEWADDR || in parseBinaryNetlinkMessage()
581 nh->nlmsg_type == RTM_DELADDR) { in parseBinaryNetlinkMessage()
585 } else if (nh->nlmsg_type == RTM_NEWROUTE || in parseBinaryNetlinkMessage()
586 nh->nlmsg_type == RTM_DELROUTE) { in parseBinaryNetlinkMessage()
590 } else if (nh->nlmsg_type == RTM_NEWNDUSEROPT) { in parseBinaryNetlinkMessage()
[all …]
/aosp12/hardware/interfaces/automotive/can/1.0/default/libnl++/protocols/
H A DNetlinkProtocol.cpp36 NetlinkProtocol::getMessageDescriptor(nlmsgtype_t nlmsg_type) { in getMessageDescriptor() argument
37 if (mMessageDescrs.count(nlmsg_type) == 0) return std::nullopt; in getMessageDescriptor()
38 return *mMessageDescrs.find(nlmsg_type)->second; in getMessageDescriptor()
H A DNetlinkProtocol.h44 nlmsgtype_t nlmsg_type);
/aosp12/bionic/libc/bionic/
H A Dbionic_netlink.cpp70 request.hdr.nlmsg_type = type; in SendRequest()
82 if (hdr->nlmsg_type == NLMSG_DONE) return true; in ReadResponses()
83 if (hdr->nlmsg_type == NLMSG_ERROR) { in ReadResponses()
/aosp12/system/netd/server/
H A DOffloadUtils.cpp152 if (resp.h.nlmsg_type != NLMSG_ERROR) { in sendAndProcessNetlinkResponse()
153 ALOGE("recv() did not return NLMSG_ERROR message: %d", resp.h.nlmsg_type); in sendAndProcessNetlinkResponse()
182 .nlmsg_type = nlMsgType, in doTcQdiscClsact()
295 .nlmsg_type = RTM_NEWTFILTER, in tcFilterAddDevBpf()
370 .nlmsg_type = RTM_DELTFILTER, in tcFilterDelDev()
H A DNetlinkCommands.cpp88 .nlmsg_type = action, in sendNetlinkRequest()
141 switch (nlh->nlmsg_type) { in processNetlinkDump()
173 nlh->nlmsg_type = deleteAction; in rtNetlinkFlush()
H A DNFLogListener.cpp70 msg.nlhdr.nlmsg_type = kNFLogConfigMsgType; in cfgCmdPfUnbind()
91 msg.nlhdr.nlmsg_type = kNFLogConfigMsgType; in cfgMode()
112 msg.nlhdr.nlmsg_type = kNFLogConfigMsgType; in cfgCmdBind()
132 msg.nlhdr.nlmsg_type = kNFLogConfigMsgType; in cfgCmdUnbind()
H A DSockDiag.cpp76 } else if (bytesread == (ssize_t) sizeof(ack) && ack.h.nlmsg_type == NLMSG_ERROR) { in checkError()
117 .nlmsg_type = SOCK_DIAG_BY_FAMILY, in sendDumpRequest()
232 if (nlh->nlmsg_type != SOCK_DIAG_BY_FAMILY) { in readDiagMsgWithTcpInfo()
233 ALOGE("expected nlmsg_type=SOCK_DIAG_BY_FAMILY, got nlmsg_type=%d", nlh->nlmsg_type); in readDiagMsgWithTcpInfo()
288 .nlmsg_type = SOCK_DESTROY, in sockDestroy()
H A DXfrmControllerTest.cpp263 response.hdr.nlmsg_type = XFRM_MSG_ALLOCSPI; in TEST_P()
321 response.hdr.nlmsg_type = XFRM_MSG_ALLOCSPI; in testIpSecAddSecurityAssociation()
594 response.hdr.nlmsg_type = XFRM_MSG_DELSA; in TEST_P()
644 response.hdr.nlmsg_type = XFRM_MSG_NEWPOLICY; in TEST_P()
668 EXPECT_EQ(XFRM_MSG_NEWPOLICY, hdr.nlmsg_type); in TEST_P()
718 response.hdr.nlmsg_type = XFRM_MSG_UPDPOLICY; in TEST_P()
743 EXPECT_EQ(XFRM_MSG_UPDPOLICY, hdr.nlmsg_type); in TEST_P()
754 response.hdr.nlmsg_type = XFRM_MSG_DELPOLICY; in TEST_P()
/aosp12/packages/modules/Connectivity/Tethering/jni/
H A Dcom_android_networkstack_tethering_BpfUtils.cpp126 if (resp.h.nlmsg_type != NLMSG_ERROR) { in sendAndProcessNetlinkResponse()
128 "recv() did not return NLMSG_ERROR message: %d", resp.h.nlmsg_type); in sendAndProcessNetlinkResponse()
234 .nlmsg_type = RTM_NEWTFILTER, in com_android_networkstack_tethering_BpfUtils_tcFilterAddDevBpf()
316 .nlmsg_type = RTM_DELTFILTER, in com_android_networkstack_tethering_BpfUtils_tcFilterDelDev()
/aosp12/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/
H A DRtNetlinkNeighborMessageTest.java93 assertEquals(NetlinkConstants.RTM_DELNEIGH, hdr.nlmsg_type); in testParseRtmDelNeigh()
120 assertEquals(NetlinkConstants.RTM_NEWNEIGH, hdr.nlmsg_type); in testParseRtmNewNeigh()
149 assertEquals(NetlinkConstants.RTM_NEWNEIGH, hdr.nlmsg_type); in testParseRtmGetNeighResponse()
H A DNetlinkErrorMessageTest.java80 assertEquals(NetlinkConstants.NLMSG_ERROR, hdr.nlmsg_type); in testParseNlmErrorOk()
90 assertEquals(NetlinkConstants.RTM_NEWNEIGH, err.msg.nlmsg_type); in testParseNlmErrorOk()
H A DNetlinkSocketTest.java85 if (hdr.nlmsg_type == NetlinkConstants.NLMSG_DONE) { in testBasicWorkingGetNeighborsQuery()
90 assertEquals(NetlinkConstants.RTM_NEWNEIGH, hdr.nlmsg_type); in testBasicWorkingGetNeighborsQuery()
H A DConntrackMessageTest.java159 assertEquals(makeCtType(IPCTNL_MSG_CT_NEW), hdr.nlmsg_type); in testConntrackParseIPv4TcpTimeoutUpdate()
208 assertEquals(makeCtType(IPCTNL_MSG_CT_NEW), hdr.nlmsg_type); in testConntrackParseIPv4UdpTimeoutUpdate()
302 assertEquals(makeCtType(IPCTNL_MSG_CT_NEW), hdr.nlmsg_type); in testParseCtNew()
/aosp12/system/logging/logd/
H A Dlibaudit.cpp43 if (rep.nlh.nlmsg_type == NLMSG_ERROR) { in get_ack()
72 req.nlh.nlmsg_type = static_cast<uint16_t>(type); in audit_send()
/aosp12/system/connectivity/wificond/net/
H A Dnl80211_packet.cpp48 nl_header->nlmsg_type = type; in NL80211Packet()
118 return nl_header->nlmsg_type; in GetMessageType()
157 nl_header->nlmsg_type = message_type; in SetMessageType()
/aosp12/hardware/interfaces/automotive/can/1.0/default/libnl++/include/libnl++/
H A Dtypes.h23 typedef decltype(nlmsghdr::nlmsg_type) nlmsgtype_t;
/aosp12/hardware/interfaces/automotive/can/1.0/default/libnl++/
H A DSocket.cpp132 if (msgtypes.count(rawMsg->nlmsg_type) == 0) { in receive()
134 << rawMsg->nlmsg_type; in receive()
H A Dprinter.cpp170 auto msgDescMaybe = protocolDescr.getMessageDescriptor(hdr->nlmsg_type); in toString()
172 protocols::MessageDescriptor::getMessageDetails(msgDescMaybe, hdr->nlmsg_type); in toString()

123