jist.swans.route
Class RouteDsr.MaintenanceBufferEntry

java.lang.Object
  extended by jist.swans.route.RouteDsr.MaintenanceBufferEntry
Enclosing class:
RouteDsr

private class RouteDsr.MaintenanceBufferEntry
extends java.lang.Object

Entries in the Maintenance Buffer correspond to messages that have been sent and are currently waiting passive acknowledgement. An overheard message is taken as a passive acknowledgement of a previously sent message if they have equal source addresses, destination addresses, protocol numbers, id numbers, fragmentation offsets, and if the Segments Left field of the Source Route option of the overheard message has a lower value than the corresponding field in the sent message.


Field Summary
 NetAddress dest
          Destination address.
 short fragOffset
          IP Fragmentation Offset.
 short id
          IP Identification number.
 short protocol
          Network protocol.
 NetAddress src
          Source address.
 
Constructor Summary
RouteDsr.MaintenanceBufferEntry(NetAddress src, NetAddress dest, short protocol, short id, short fragOffset)
          Creates a new MaintenanceBufferEntry.
 
Method Summary
 boolean equals(java.lang.Object o)
          
 int hashCode()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

src

public NetAddress src
Source address.


dest

public NetAddress dest
Destination address.


protocol

public short protocol
Network protocol.


id

public short id
IP Identification number.


fragOffset

public short fragOffset
IP Fragmentation Offset.

Constructor Detail

RouteDsr.MaintenanceBufferEntry

public RouteDsr.MaintenanceBufferEntry(NetAddress src,
                                       NetAddress dest,
                                       short protocol,
                                       short id,
                                       short fragOffset)
Creates a new MaintenanceBufferEntry.

Parameters:
src - source address
dest - destination address
protocol - network protocol
id - IP Identification number
fragOffset - IP Fragmentation Offset
Method Detail

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)

Overrides:
equals in class java.lang.Object