Home
last modified time | relevance | path

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

/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/
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()
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()
DInetDiagMessage.java92 nlMsgHdr.nlmsg_type = SOCK_DIAG_BY_FAMILY; in InetDiagReqV2()
125 if (hdr.nlmsg_type == NetlinkConstants.NLMSG_DONE) { in lookupUidByFamily()
DRtNetlinkNeighborMessage.java107 nlmsghdr.nlmsg_type = NetlinkConstants.RTM_GETNEIGH; in newGetNeighborsRequest()
125 nlmsghdr.nlmsg_type = NetlinkConstants.RTM_NEWNEIGH; in newNewNeighborMessage()
DConntrackMessage.java208 ctmsg.mHeader.nlmsg_type = (NetlinkConstants.NFNL_SUBSYS_CTNETLINK << 8) in newIPv4TimeoutUpdateRequest()
464 return (short) (getHeader().nlmsg_type & ~(NetlinkConstants.NFNL_SUBSYS_CTNETLINK << 8)); in getMessageType()
/packages/modules/Connectivity/Tethering/jni/
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()
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/
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()
DNetlinkErrorMessageTest.java80 assertEquals(NetlinkConstants.NLMSG_ERROR, hdr.nlmsg_type); in testParseNlmErrorOk()
90 assertEquals(NetlinkConstants.RTM_NEWNEIGH, err.msg.nlmsg_type); in testParseNlmErrorOk()
DNetlinkSocketTest.java85 if (hdr.nlmsg_type == NetlinkConstants.NLMSG_DONE) { in testBasicWorkingGetNeighborsQuery()
90 assertEquals(NetlinkConstants.RTM_NEWNEIGH, hdr.nlmsg_type); in testBasicWorkingGetNeighborsQuery()
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()
DStructNlMsgHdrTest.java53 struct.nlmsg_type = type; in makeStructNlMsgHdr()
DInetDiagSocketTest.java262 assertEquals(NetlinkConstants.SOCK_DIAG_BY_FAMILY, hdr.nlmsg_type); in testParseInetDiagResponse()
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/
DTcpSocketTracker.java226 if (nlmsghdr.nlmsg_type == NLMSG_DONE) break; in pollSocketsInfo()
228 if (nlmsghdr.nlmsg_type != SOCK_DIAG_BY_FAMILY) { in pollSocketsInfo()
231 + nlmsghdr.nlmsg_type); in pollSocketsInfo()
/packages/modules/Connectivity/Tethering/tests/privileged/src/com/android/networkstack/tethering/
DConntrackSocketTest.java118 if (nlmsghdr.nlmsg_type == ((NFNL_SUBSYS_CTNETLINK << 8) | IPCTNL_MSG_CT_NEW)) { in testIpv4ConntrackSocket()
/packages/modules/NetworkStack/common/moduleutils/src/android/net/ip/
DConntrackMonitor.java80 this.msgType = msg.getHeader().nlmsg_type; in ConntrackEvent()
DIpNeighborMonitor.java138 final short msgType = neighMsg.getHeader().nlmsg_type; in processNetlinkMessage()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DOffloadHardwareInterface.java336 nlh.nlmsg_type = type; in sendIpv4NfGenMsg()