net.clackrouter.component.simplerouter
Class ARPLookup.CacheEntry

java.lang.Object
  extended by net.clackrouter.component.simplerouter.ARPLookup.CacheEntry
Enclosing class:
ARPLookup

public class ARPLookup.CacheEntry
extends java.lang.Object

Data structure representing a single ARP Cache entry


Field Summary
 EthernetAddress mEthAddr
           
 java.net.InetAddress mIPAddr
           
 long mLastUpdate
           
 int mStayTime
           
 
Constructor Summary
ARPLookup.CacheEntry(java.net.InetAddress ipa, EthernetAddress ea, int stay)
           
 
Method Summary
 boolean timedOut()
          tests if this entry is times out
 java.lang.String toString()
           
 void update()
          set last updated time to current time
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mIPAddr

public java.net.InetAddress mIPAddr

mEthAddr

public EthernetAddress mEthAddr

mStayTime

public int mStayTime

mLastUpdate

public long mLastUpdate
Constructor Detail

ARPLookup.CacheEntry

public ARPLookup.CacheEntry(java.net.InetAddress ipa,
                            EthernetAddress ea,
                            int stay)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

timedOut

public boolean timedOut()
tests if this entry is times out


update

public void update()
set last updated time to current time