Class fi.hut.tcm.jacob.tcpip.ip.IpFragmentationState
java.lang.Object
|
+--fi.hut.tcm.jacob.tcpip.ip.IpFragmentationState
- public class IpFragmentationState
- extends java.lang.Object
- implements fi.hut.tcm.jacob.conduits.State
IpFragmentationState
Provides the methods:
-applyFromNet()
Simply forwards the IP packet to the IpRoutingMux.
-applyToNet().
A state responsible for fragmenting outgoing IP packets that are bigger
than the MTU. Ignores incoming packets, except for upodating their
messenger reference.
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)
Simply forwards the IP packet to the IpRoutingMux. |
void
|
applyToNet(fi.hut.tcm.jacob.conduits.Message message,
fi.hut.tcm.jacob.conduits.Session session,
fi.hut.tcm.jacob.conduits.Messenger messenger)
Calls fragmentationNeeded().
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
instance
public static IpFragmentationState instance
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)
- Simply forwards the IP packet to the IpRoutingMux.
applyToNet
public void applyToNet(fi.hut.tcm.jacob.conduits.Message message,
fi.hut.tcm.jacob.conduits.Session session,
fi.hut.tcm.jacob.conduits.Messenger messenger)
- Calls fragmentationNeeded().
If fragmentationNeeded() returns Error, the packet is forwarded to
the IcmpAdaptor.
Fragments the packet with fragment() if necessary