Home
last modified time | relevance | path

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

12

/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/
DStructNlMsgHdr.java109 struct.nlmsg_type = byteBuffer.getShort(); in parse()
122 public short nlmsg_type; field in StructNlMsgHdr
129 nlmsg_type = 0; in StructNlMsgHdr()
137 nlmsg_type = type; in StructNlMsgHdr()
151 byteBuffer.putShort(nlmsg_type); in pack()
172 final String typeStr = "" + nlmsg_type in toString()
174 ? "" : NetlinkConstants.stringForNlMsgType(nlmsg_type, nlFamily)) in toString()
DNetlinkMessage.java69 if (nlmsghdr.nlmsg_type <= NetlinkConstants.NLMSG_MAX_RESERVED) { in parse()
121 switch (nlmsghdr.nlmsg_type) { in parseCtlMessage()
136 switch (nlmsghdr.nlmsg_type) { in parseRtMessage()
160 switch (nlmsghdr.nlmsg_type) { in parseInetDiagMessage()
170 switch (nlmsghdr.nlmsg_type) { in parseNfMessage()
DNetlinkUtils.java108 if (nlmsghdr == null || nlmsghdr.nlmsg_type != NetlinkConstants.NLMSG_ERROR) { in parseNetlinkErrorMessage()
365 if (nlMsg.getHeader().nlmsg_type == NLMSG_DONE) { in getAndProcessNetlinkDumpMessagesWithFd()
411 nlmsghdr.nlmsg_type = NetlinkConstants.RTM_GETROUTE; in newIpv6MulticastRouteDumpRequest()
DRtNetlinkNeighborMessage.java117 nlmsghdr.nlmsg_type = NetlinkConstants.RTM_GETNEIGH; in newGetNeighborsRequest()
135 nlmsghdr.nlmsg_type = NetlinkConstants.RTM_NEWNEIGH; in newNewNeighborMessage()
DRtNetlinkAddressMessage.java194 nlmsghdr.nlmsg_type = NetlinkConstants.RTM_NEWADDR; in newRtmNewAddressMessage()
235 nlmsghdr.nlmsg_type = NetlinkConstants.RTM_DELADDR; in newRtmDelAddressMessage()
DConntrackMessage.java211 ctmsg.mHeader.nlmsg_type = (NetlinkConstants.NFNL_SUBSYS_CTNETLINK << 8) in newIPv4TimeoutUpdateRequest()
472 return (short) (getHeader().nlmsg_type & ~(NetlinkConstants.NFNL_SUBSYS_CTNETLINK << 8)); in getMessageType()
DInetDiagMessage.java149 nlMsgHdr.nlmsg_type = type; in inetDiagReqV2()
215 if (hdr.nlmsg_type == NetlinkConstants.NLMSG_DONE) { in lookupUidByFamily()
/packages/modules/Connectivity/staticlibs/native/tcutils/
Dtcutils.cpp173 .nlmsg_type = RTM_NEWTFILTER, in IngressPoliceFilterBuilder()
442 if (resp.h.nlmsg_type != NLMSG_ERROR) { in sendAndProcessNetlinkResponse()
444 resp.h.nlmsg_type); in sendAndProcessNetlinkResponse()
540 .nlmsg_type = nlMsgType, in doTcQdiscClsact()
604 .nlmsg_type = RTM_NEWTFILTER, in tcAddBpfFilter()
713 .nlmsg_type = RTM_DELTFILTER, in tcDeleteFilter()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/
DRtNetlinkNeighborMessageTest.java89 assertEquals(NetlinkConstants.RTM_DELNEIGH, hdr.nlmsg_type); in testParseRtmDelNeigh()
116 assertEquals(NetlinkConstants.RTM_NEWNEIGH, hdr.nlmsg_type); in testParseRtmNewNeigh()
145 assertEquals(NetlinkConstants.RTM_NEWNEIGH, hdr.nlmsg_type); in testParseRtmGetNeighResponse()
DNetlinkErrorMessageTest.java76 assertEquals(NetlinkConstants.NLMSG_ERROR, hdr.nlmsg_type); in testParseNlmErrorOk()
86 assertEquals(NetlinkConstants.RTM_NEWNEIGH, err.msg.nlmsg_type); in testParseNlmErrorOk()
DNetlinkUtilsTest.java119 assertEquals(NetlinkConstants.RTM_NEWNEIGH, hdr.nlmsg_type); in testGetNeighborsQuery()
150 assertEquals(NetlinkConstants.RTM_NEWADDR, nlmsghdr.nlmsg_type); in testBasicWorkingGetAddrQuery()
187 nlmsghdr.nlmsg_type = NetlinkConstants.RTM_GETADDR; in newGetAddrRequest()
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()
DRtNetlinkRouteMessageTest.java73 assertEquals(NetlinkConstants.RTM_NEWROUTE, hdr.nlmsg_type); in assertRtmRouteMessage()
161 assertEquals(NetlinkConstants.RTM_NEWROUTE, hdr.nlmsg_type); in testParseRtmNewRoute_MulticastIpv6()
DStructNlMsgHdrTest.java58 struct.nlmsg_type = type; in makeStructNlMsgHdr()
DRtNetlinkLinkMessageTest.java74 assertEquals(NetlinkConstants.RTM_NEWLINK, hdr.nlmsg_type); in testParseRtmNewLink()
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/internal/
DSocketNetlinkMonitor.java66 switch (msg.getHeader().nlmsg_type) { in processRtNetlinkAddressMessage()
76 mSharedLog.e("Unknown rtnetlink address msg type " + msg.getHeader().nlmsg_type); in processRtNetlinkAddressMessage()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/internal/
DSocketNetlinkMonitorTest.kt55 nlmsg_type = NetlinkConstants.RTM_NEWADDR in testHandleDeprecatedNetlinkMessage()
84 nlmsghdr.nlmsg_type = NetlinkConstants.RTM_DELADDR in testHandleDeprecatedNetlinkMessage()
/packages/modules/NetworkStack/src/android/net/ip/
DIpClientLinkObserver.java533 final short nlMsgType = msg.getHeader().nlmsg_type; in processRtNetlinkLinkMessage()
586 switch (msg.getHeader().nlmsg_type) { in processRtNetlinkAddressMessage()
598 Log.e(mTag, "Unknown rtnetlink address msg type " + msg.getHeader().nlmsg_type); in processRtNetlinkAddressMessage()
616 switch (msg.getHeader().nlmsg_type) { in processRtNetlinkRouteMessage()
628 Log.e(mTag, "Unknown rtnetlink route msg type " + msg.getHeader().nlmsg_type); in processRtNetlinkRouteMessage()
/packages/modules/Connectivity/service-t/src/com/android/server/
DIpSecXfrmController.java156 final int msgType = msg.getHeader().nlmsg_type; in sendRequestAndGetResponse()
179 final int messageType = msg.getHeader().nlmsg_type; in ipSecGetSa()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/xfrm/
DXfrmNetlinkMessage.java69 switch (nlmsghdr.nlmsg_type) { in parseXfrmInternal()
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/
DNetlink.cpp64 << "len: 0x" << hdr.nlmsg_len << ", type: 0x" << hdr.nlmsg_type << ", flags: 0x" in operator <<()
DNetlinkListener.cpp114 const auto& fn = findWithDefault(mDispatchMap, nlmsg.nlmsg_type, kDefaultDispatchFn); in run()
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/
DTcpSocketTracker.java407 if (nlmsghdr.nlmsg_type == NLMSG_DONE) { in getLengthAndVerifyMsgHeader()
411 if (nlmsghdr.nlmsg_type != SOCK_DIAG_BY_FAMILY) { in getLengthAndVerifyMsgHeader()
414 + nlmsghdr.nlmsg_type); in getLengthAndVerifyMsgHeader()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/ip/
DConntrackMonitor.java85 this.msgType = msg.getHeader().nlmsg_type; in ConntrackEvent()
DIpNeighborMonitor.java153 final short msgType = neighMsg.getHeader().nlmsg_type; in processNetlinkMessage()

12