Home
last modified time | relevance | path

Searched refs:NetlinkConstants (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/services/net/java/android/net/netlink/
DNetlinkMessage.java19 import android.net.netlink.NetlinkConstants;
52 int payloadLength = NetlinkConstants.alignedLengthOf(nlmsghdr.nlmsg_len); in parse()
62 case NetlinkConstants.NLMSG_ERROR: in parse()
64 case NetlinkConstants.NLMSG_DONE: in parse()
68 case NetlinkConstants.RTM_NEWNEIGH: in parse()
69 case NetlinkConstants.RTM_DELNEIGH: in parse()
70 case NetlinkConstants.RTM_GETNEIGH: in parse()
73 if (nlmsghdr.nlmsg_type <= NetlinkConstants.NLMSG_MAX_RESERVED) { in parse()
DRtNetlinkNeighborMessage.java108 final int kAdditionalSpace = NetlinkConstants.alignedLengthOf( in parse()
130 nlmsghdr.nlmsg_type = NetlinkConstants.RTM_GETNEIGH; in newGetNeighborsRequest()
148 nlmsghdr.nlmsg_type = NetlinkConstants.RTM_NEWNEIGH; in newNewNeighborMessage()
207 spaceRequired += NetlinkConstants.alignedLengthOf( in getRequiredSpace()
211 spaceRequired += NetlinkConstants.alignedLengthOf( in getRequiredSpace()
246 + "linklayeraddr{" + NetlinkConstants.hexify(mLinkLayerAddr) + "} " in toString()
DStructNlAttr.java19 import android.net.netlink.NetlinkConstants;
91 return NetlinkConstants.alignedLengthOf(nla_len); in getAlignedLength()
132 + "nla_value{" + NetlinkConstants.hexify(nla_value) + "}, " in toString()
DNetlinkConstants.java35 public class NetlinkConstants { class
36 private NetlinkConstants() {} in NetlinkConstants() method in NetlinkConstants
DStructNlMsgHdr.java19 import android.net.netlink.NetlinkConstants;
129 + "(" + NetlinkConstants.stringForNlMsgType(nlmsg_type) + ")"; in toString()
DStructNdMsg.java19 import android.net.netlink.NetlinkConstants;
154 + "family{" + NetlinkConstants.stringForAddressFamily((int) ndm_family) + "}, " in toString()
DStructNlMsgErr.java19 import android.net.netlink.NetlinkConstants;
/frameworks/base/services/tests/servicestests/src/android/net/netlink/
DNetlinkErrorMessageTest.java23 import android.net.netlink.NetlinkConstants;
67 assertEquals(NetlinkConstants.NLMSG_ERROR, hdr.nlmsg_type); in testParseNlmErrorOk()
77 assertEquals(NetlinkConstants.RTM_NEWNEIGH, err.msg.nlmsg_type); in testParseNlmErrorOk()
DRtNetlinkNeighborMessageTest.java19 import android.net.netlink.NetlinkConstants;
149 assertEquals(NetlinkConstants.RTM_DELNEIGH, hdr.nlmsg_type); in testParseRtmDelNeigh()
175 assertEquals(NetlinkConstants.RTM_NEWNEIGH, hdr.nlmsg_type); in testParseRtmNewNeigh()
203 assertEquals(NetlinkConstants.RTM_NEWNEIGH, hdr.nlmsg_type); in testParseRtmGetNeighResponse()
DNetlinkSocketTest.java72 if (hdr.nlmsg_type == NetlinkConstants.NLMSG_DONE) { in testBasicWorkingGetNeighborsQuery()
77 assertEquals(NetlinkConstants.RTM_NEWNEIGH, hdr.nlmsg_type); in testBasicWorkingGetNeighborsQuery()
/frameworks/base/services/net/java/android/net/ip/
DIpReachabilityMonitor.java28 import android.net.netlink.NetlinkConstants;
200 errmsg = "raw bytes: " + NetlinkConstants.hexify(bytes); in probeNeighbor()
496 Log.e(TAG, "unparsable netlink msg: " + NetlinkConstants.hexify(byteBuffer)); in parseNetlinkMessageBuffer()
537 + "[" + NetlinkConstants.hexify(neighMsg.getLinkLayerAddress()) + "], " in evaluateRtNetlinkNeighborMessage()
538 + NetlinkConstants.stringForNlMsgType(msgType) + ", " in evaluateRtNetlinkNeighborMessage()
551 (msgType == NetlinkConstants.RTM_DELNEIGH) in evaluateRtNetlinkNeighborMessage()