Home
last modified time | relevance | path

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

/frameworks/base/services/net/java/android/net/netlink/
DStructNlMsgHdr.java89 struct.nlmsg_type = byteBuffer.getShort(); in parse()
102 public short nlmsg_type; field in StructNlMsgHdr
109 nlmsg_type = 0; in StructNlMsgHdr()
120 byteBuffer.putShort(nlmsg_type); in pack()
128 final String typeStr = "" + nlmsg_type in toString()
129 + "(" + NetlinkConstants.stringForNlMsgType(nlmsg_type) + ")"; in toString()
DNetlinkMessage.java60 switch (nlmsghdr.nlmsg_type) { in parse()
75 if (nlmsghdr.nlmsg_type <= NetlinkConstants.NLMSG_MAX_RESERVED) { in parse()
DInetDiagMessage.java66 nlMsgHdr.nlmsg_type = SOCK_DIAG_BY_FAMILY; in InetDiagReqV2()
99 if (hdr.nlmsg_type == NetlinkConstants.NLMSG_DONE) { in lookupUidByFamily()
DRtNetlinkNeighborMessage.java130 nlmsghdr.nlmsg_type = NetlinkConstants.RTM_GETNEIGH; in newGetNeighborsRequest()
148 nlmsghdr.nlmsg_type = NetlinkConstants.RTM_NEWNEIGH; in newNewNeighborMessage()
DConntrackMessage.java87 ctmsg.mHeader.nlmsg_type = (NFNL_SUBSYS_CTNETLINK << 8) | IPCTNL_MSG_CT_NEW; in newIPv4TimeoutUpdateRequest()
/frameworks/base/tests/net/java/android/net/netlink/
DRtNetlinkNeighborMessageTest.java159 assertEquals(NetlinkConstants.RTM_DELNEIGH, hdr.nlmsg_type); in testParseRtmDelNeigh()
186 assertEquals(NetlinkConstants.RTM_NEWNEIGH, hdr.nlmsg_type); in testParseRtmNewNeigh()
215 assertEquals(NetlinkConstants.RTM_NEWNEIGH, hdr.nlmsg_type); in testParseRtmGetNeighResponse()
DNetlinkErrorMessageTest.java79 assertEquals(NetlinkConstants.NLMSG_ERROR, hdr.nlmsg_type); in testParseNlmErrorOk()
89 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()
DInetDiagSocketTest.java318 assertEquals(NetlinkConstants.SOCK_DIAG_BY_FAMILY, hdr.nlmsg_type); in testParseInetDiagResponse()