SSF.OS.OSPFv2.test
Class IPwithErrorInjection

java.lang.Object
  |
  +--SSF.OS.ProtocolSession
        |
        +--SSF.OS.IP
              |
              +--SSF.OS.OSPFv2.test.UnreliableIP
                    |
                    +--SSF.OS.OSPFv2.test.IPwithErrorInjection
All Implemented Interfaces:
com.renesys.raceway.DML.Configurable
Direct Known Subclasses:
PacketGenerator

public class IPwithErrorInjection
extends UnreliableIP

This class is a replacement for SSF.OS.IP. Basic functionality is provided by IP and UnreliableIP, which provides the facility to bring down links at given times. This class additionally provides the facility to manipulate the contents of OSPF packets at given times. More details are provided in the additional documentation of the OSPF testsuite.


Inner Class Summary
(package private)  class IPwithErrorInjection.OSPFError
          Container to specify errors
 
Inner classes inherited from class SSF.OS.OSPFv2.test.UnreliableIP
UnreliableIP.Fail
 
Inner classes inherited from class SSF.OS.IP
SSF.OS.IP.demux_cache
 
Field Summary
private  java.util.Vector errors
          a vector with all the specified errors
private  Logger log
          referece to the log utility
 
Fields inherited from class SSF.OS.OSPFv2.test.UnreliableIP
failures
 
Fields inherited from class SSF.OS.IP
DEBUG, INTERFACE_COUNT, INTERFACE_SET, INTERFACE_SET_STARTING_SIZE, INTERFACES, monitor, monitorON, ROUTING_TABLE, session_cache, tieBreakerClass
 
Fields inherited from class SSF.OS.ProtocolSession
inGraph, name, use
 
Constructor Summary
IPwithErrorInjection()
          Constructor
 
Method Summary
 void config(com.renesys.raceway.DML.Configuration cfg)
          Configures this ProtocolSession ProtocolSession[ name ip use SSF.OS.OSPFv2.test.IPwithErrorInjection error [ from
 boolean push(SSF.OS.ProtocolMessage message, SSF.OS.ProtocolSession fromSession)
          Handles incoming and outgoing IP-packets.
 
Methods inherited from class SSF.OS.IP
createMonitor, drop, getMonitorEnable, getRoutingTable, init, opened, setGraph, setMonitorEnable
 
Methods inherited from class SSF.OS.ProtocolSession
close, closed, debugIdentifier, inGraph, open, pushAfterDelay, pushAfterDelayFailed, version
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

errors

private java.util.Vector errors
a vector with all the specified errors

log

private Logger log
referece to the log utility
Constructor Detail

IPwithErrorInjection

public IPwithErrorInjection()
Constructor
Method Detail

config

public void config(com.renesys.raceway.DML.Configuration cfg)
            throws com.renesys.raceway.DML.configException
Configures this ProtocolSession
 ProtocolSession[ name ip use SSF.OS.OSPFv2.test.IPwithErrorInjection
         error [
             from 
Overrides:
config in class UnreliableIP

push

public boolean push(SSF.OS.ProtocolMessage message,
                    SSF.OS.ProtocolSession fromSession)
             throws SSF.OS.ProtocolException
Handles incoming and outgoing IP-packets. Dependent of the interface and the simulation time, the packets are dropped or simply passed to UnreliableIP.
Overrides:
push in class UnreliableIP