Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class fi.hut.tcm.jacob.tcpip.ip.IpRoutingOnState

java.lang.Object
  |
  +--fi.hut.tcm.jacob.tcpip.ip.IpRoutingState
        |
        +--fi.hut.tcm.jacob.tcpip.ip.IpRoutingOnState

public class IpRoutingOnState
extends IpRoutingState
IpRoutingOnState The RoutingSession is in this state when routing is enabled.


Field Summary
static IpRoutingOnState instance
           
 
Method Summary
void applyFromNet(fi.hut.tcm.jacob.conduits.Message message, fi.hut.tcm.jacob.conduits.Session session, fi.hut.tcm.jacob.conduits.Messenger messenger)
          Calls the Messenger's destinationLocal() method which tells if the destination IP address belongs to this machine.
 
Methods inherited from class fi.hut.tcm.jacob.tcpip.ip.IpRoutingState
applyFromNet, applyToNet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Field Detail

instance

public static final IpRoutingOnState instance
Method Detail

applyFromNet

public void applyFromNet(fi.hut.tcm.jacob.conduits.Message message,
                         fi.hut.tcm.jacob.conduits.Session session,
                         fi.hut.tcm.jacob.conduits.Messenger messenger)
Calls the Messenger's destinationLocal() method which tells if the destination IP address belongs to this machine. If the destination is local, then the message is forwarded to the ReassemblySession right away. The IP TimeToLive is decremented by one. If it becomes zero, the packet is sent to the IcmpAdaptor. The messenger's setNextHopIp() method is called, and the packet is sent on its way to the IpRoutingMux.
Overrides:
applyFromNet in class IpRoutingState

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD