|
IPv6TestAdapter v47 build 0.8 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.testingtech.ttcn.tri.IPv6TestAdapter
IPv6TestAdapter.java This is the test adapter for the IPv6 TS on
linux/windows platform(STF276).
The configurations of the test adapter:
+-----------------------------------+-----------------------------------+ | Key | Entry | +-----------------------------------+-----------------+-----------------+ | MAC address | ComponentId | Role | +-----------------------------------+-----------------+-----------------+With the receive hashmap the test adapter gets all the information to retrieve the component to enqueue the message in accessing this information via the MAC address of the received message. In addition with the port hashmap the tsiPortId, needed to enqueue, can be retrieved with this componentId.
+-----------------------------------+-----------------------------------+ | Key | Entry | +-----------------+-----------------+-----------------+-----------------+ | IP address | ComponentId | NetDevice | MAC address | +-----------------+-----------------+-----------------+-----------------+With the send hashmap the test adapter gets all the information to send the retrieved message to a configured net device. The information can be retrieved via the sent IP address.
+-----------------------------------+-----------------------------------+ | Key | Entry | +-----------------------------------+-----------------------------------+ | CompIdPort | tsiPortId | +-----------------------------------+-----------------------------------+With the port hashmap the test adapter gets all the information needed for enqueuing received messages.
Constructor Summary | |
IPv6TestAdapter()
Creates a new IPv6TestAdapter object. |
Method Summary | |
void |
enqueueMsg(TriPortId sender,
TriAddress address,
TriComponentId receiver,
TriMessage message)
Enqueues the message to the TE. |
TciCDProvided |
getCodec(java.lang.String encodingName)
|
java.lang.String |
getIPv6AddressString(byte[] msg)
Prepares a IP address string from a given IP packet |
void |
handlePacket(Packet packet)
|
void |
log(java.lang.String logMessage)
Logs TestAdapter events |
TriStatus |
prepareHashMaps(Value ipv6Param,
java.lang.String ipField,
java.lang.String macField,
java.lang.String netDeviceId,
PTCAndRole par)
Prepares the send and receive HashMaps for the given configurations. |
TriStatus |
scopCancel()
Stops the receiver thread for the upper layer. |
void |
setFilterAndStartThread(Jpcap jpcap,
java.lang.String netDeviceId,
RecordOfValue macFilterList)
Sets the filter for capturing messages from the net device and starts the capturing. |
com.testingtech.ttcn.tri.TestAdapter |
setRB(de.tu_berlin.cs.uebb.muttcn.runtime.RB rb)
|
TriStatus |
triExecuteTestcase(TriTestCaseId testcase,
TriPortIdList tsiList)
|
TriStatus |
triMap(TriPortId compPortId,
TriPortId tsiPortId)
|
TriStatus |
triSAReset()
|
TriStatus |
triSend(TriComponentId componentId,
TriPortId tsiPortId,
TriAddress address,
TriMessage message)
|
TriStatus |
triSutActionInformal(java.lang.String description)
|
TriStatus |
triSutActionTemplate(TriActionTemplate at)
|
TriStatus |
triUnmap(TriPortId compPortId,
TriPortId tsiPortId)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IPv6TestAdapter()
Method Detail |
public com.testingtech.ttcn.tri.TestAdapter setRB(de.tu_berlin.cs.uebb.muttcn.runtime.RB rb)
public TciCDProvided getCodec(java.lang.String encodingName)
public TriStatus triExecuteTestcase(TriTestCaseId testcase, TriPortIdList tsiList)
public TriStatus triMap(TriPortId compPortId, TriPortId tsiPortId)
public TriStatus triUnmap(TriPortId compPortId, TriPortId tsiPortId)
public void enqueueMsg(TriPortId sender, TriAddress address, TriComponentId receiver, TriMessage message)
sender
- address
- receiver
- message
- public void setFilterAndStartThread(Jpcap jpcap, java.lang.String netDeviceId, RecordOfValue macFilterList)
jpcap
- The instance of capturingnetDeviceId
- The net device for capturingmacFilterList
- The MAC address list for filteringpublic TriStatus triSend(TriComponentId componentId, TriPortId tsiPortId, TriAddress address, TriMessage message)
public TriStatus triSutActionInformal(java.lang.String description)
public TriStatus triSutActionTemplate(TriActionTemplate at)
public TriStatus triSAReset()
public void handlePacket(Packet packet)
public void log(java.lang.String logMessage)
logMessage
- public java.lang.String getIPv6AddressString(byte[] msg)
msg
- The IP packet
public TriStatus prepareHashMaps(Value ipv6Param, java.lang.String ipField, java.lang.String macField, java.lang.String netDeviceId, PTCAndRole par)
ipv6Param
- The IPv6 Parameter given in the config messageipField
- The name of the IP fieldmacField
- The name of the MAC fieldnetDeviceId
- The net device to storepar
- The componentId included to enter into sendMap, the entry for the rcvMap
public TriStatus scopCancel()
|
IPv6TestAdapter v47 build 0.8 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |