Home
last modified time | relevance | path

Searched refs:nudState (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DNetlinkTestUtils.kt36 nudState: Short,
41 nudState = nudState,
50 nudState: Short
54 nudState = nudState
60 nudState: Short,
77 nudState.toLEHex() + // NUD state
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/
DStructNdMsg.java48 public static String stringForNudState(short nudState) { in stringForNudState() argument
49 switch (nudState) { in stringForNudState()
60 return "unknown NUD state: " + String.valueOf(nudState); in stringForNudState()
67 public static boolean isNudStateConnected(short nudState) { in isNudStateConnected() argument
68 return ((nudState & (NUD_PERMANENT | NUD_NOARP | NUD_REACHABLE)) != 0); in isNudStateConnected()
74 public static boolean isNudStateValid(short nudState) { in isNudStateValid() argument
75 return (isNudStateConnected(nudState) in isNudStateValid()
76 || ((nudState & (NUD_PROBE | NUD_STALE | NUD_DELAY)) != 0)); in isNudStateValid()
DRtNetlinkNeighborMessage.java133 int seqNo, InetAddress ip, short nudState, int ifIndex, byte[] llAddr) { in newNewNeighborMessage() argument
144 msg.mNdmsg.ndm_state = nudState; in newNewNeighborMessage()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/ip/
DIpNeighborMonitor.java89 public final short nudState; field in IpNeighborMonitor.NeighborEvent
94 short nudState, @NonNull MacAddress macAddr) { in NeighborEvent() argument
99 this.nudState = nudState; in NeighborEvent()
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()
162 final short nudState = in processNetlinkMessage() local
168 whenMs, msgType, ifindex, destination, nudState, in processNetlinkMessage()
/packages/modules/NetworkStack/src/android/net/ip/
DIpReachabilityMonitor.java314 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/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DBpfCoordinatorTest.java653 private void recvNewNeigh(int ifindex, InetAddress addr, short nudState, MacAddress mac) { in recvNewNeigh() argument
655 nudState, mac)); in recvNewNeigh()
659 private void recvDelNeigh(int ifindex, InetAddress addr, short nudState, MacAddress mac) { in recvDelNeigh() argument
661 nudState, mac)); in recvDelNeigh()