Home
last modified time | relevance | path

Searched refs:StructNdMsg (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/
DRtNetlinkNeighborMessage.java64 neighMsg.mNdmsg = StructNdMsg.parse(byteBuffer); in parse()
94 final int kMinConsumed = StructNlMsgHdr.STRUCT_SIZE + StructNdMsg.STRUCT_SIZE; in parse()
110 final int length = StructNlMsgHdr.STRUCT_SIZE + StructNdMsg.STRUCT_SIZE; in newGetNeighborsRequest()
122 final StructNdMsg ndmsg = new StructNdMsg(); in newGetNeighborsRequest()
140 msg.mNdmsg = new StructNdMsg(); in newNewNeighborMessage()
156 private StructNdMsg mNdmsg;
171 public StructNdMsg getNdHeader() { in getNdHeader()
192 int spaceRequired = StructNlMsgHdr.STRUCT_SIZE + StructNdMsg.STRUCT_SIZE; in getRequiredSpace()
DStructNdMsg.java30 public class StructNdMsg { class
129 public static StructNdMsg parse(ByteBuffer byteBuffer) { in parse()
135 final StructNdMsg struct = new StructNdMsg(); in parse()
152 public StructNdMsg() { in StructNdMsg() method in StructNdMsg
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/ip/
DIpNeighborMonitor.java36 import com.android.net.module.util.netlink.StructNdMsg;
68 1, ip, StructNdMsg.NUD_PROBE, ifIndex, null); in startKernelNeighborProbe()
104 return (msgType != RTM_DELNEIGH) && StructNdMsg.isNudStateConnected(nudState); in isConnected()
108 return (msgType != RTM_DELNEIGH) && StructNdMsg.isNudStateValid(nudState); in isValid()
118 .add(StructNdMsg.stringForNudState(nudState)) in toString()
154 final StructNdMsg ndMsg = neighMsg.getNdHeader(); in processNetlinkMessage()
164 ? StructNdMsg.NUD_NONE in processNetlinkMessage()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/
DRtNetlinkNeighborMessageTest.java21 import static com.android.net.module.util.netlink.StructNdMsg.NUD_STALE;
94 final StructNdMsg ndmsgHdr = neighMsg.getNdHeader(); in testParseRtmDelNeigh()
121 final StructNdMsg ndmsgHdr = neighMsg.getNdHeader(); in testParseRtmNewNeigh()
199 seqNo, Inet4Address.LOOPBACK, StructNdMsg.NUD_DELAY, ifIndex, llAddr); in testCreateRtmNewNeighMessage()
/packages/modules/NetworkStack/src/android/net/ip/
DIpReachabilityMonitor.java64 import com.android.net.module.util.netlink.StructNdMsg;
314 if (event.nudState == StructNdMsg.NUD_FAILED) {
319 } else if (event.nudState == StructNdMsg.NUD_REACHABLE) {
388 if (prev == null || prev.nudState != StructNdMsg.NUD_PROBE) return false;
485 return (prev == null && event.nudState == StructNdMsg.NUD_FAILED);
504 if (val == null || val.nudState != StructNdMsg.NUD_FAILED) continue;
589 + (val != null ? StructNdMsg.stringForNudState(val.nudState) : "null"));
598 if (val == null || val.nudState != StructNdMsg.NUD_REACHABLE) return;
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DIpReachabilityMonitorTest.kt57 import com.android.net.module.util.netlink.StructNdMsg.NUD_FAILED in <lambda>()
58 import com.android.net.module.util.netlink.StructNdMsg.NUD_PROBE in <lambda>()
59 import com.android.net.module.util.netlink.StructNdMsg.NUD_REACHABLE in <lambda>()
60 import com.android.net.module.util.netlink.StructNdMsg.NUD_STALE in <lambda>()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DBpfCoordinatorTest.java50 import static com.android.net.module.util.netlink.StructNdMsg.NUD_FAILED;
51 import static com.android.net.module.util.netlink.StructNdMsg.NUD_REACHABLE;
52 import static com.android.net.module.util.netlink.StructNdMsg.NUD_STALE;