DRCL J-Sim API

drcl.inet
Class TraceRTPkt

java.lang.Object
  extended bydrcl.net.Packet
      extended bydrcl.inet.InetPacket
          extended bydrcl.inet.TraceRTPkt
All Implemented Interfaces:
java.lang.Cloneable, Countable, ObjectCloneable, PacketWrapper

public class TraceRTPkt
extends InetPacket

This class is a simple hack to support traceroute This new packet contains a Linked List useful to store InetAdress of each Hop


Field Summary
static int RT_REQUEST
           
static int RT_RESPONSE
           
 
Fields inherited from class drcl.inet.InetPacket
CE, CONTROL, DATA, DONT_FRAGMENT, ECT, LABELLED, MORE_FRAGMENT, NAME, PACKET_IN_PACKET, TYPE_MASK
 
Fields inherited from class drcl.net.Packet
body, headerSize, size
 
Constructor Summary
TraceRTPkt(int iType, long destAddr_, int pktSize_)
           
 
Method Summary
 java.lang.String _toString(java.lang.String separator_)
          Prints the packet header.
 void addHop(double now_, long ip)
          This method adds the given ip address at the end of the list
 java.lang.Object[] getList()
          This method returns the whole list of IP Address
 int getType()
          Return the TraceRT packet type
 void setType(int type_)
           
 
Methods inherited from class drcl.inet.InetPacket
_clone, clone, dontFragment, equals, getDestination, getExtension, getFlag, getFragmentOffset, getHops, getID, getIncomingIf, getLabel, getName, getNextHop, getProtocol, getSource, getTOS, getTTL, hasMoreFragment, isCE, isControlPacket, isDataPacket, isECT, isFragment, isLabelled, isPacketInPacket, isRouterAlertEnabled, setCE, setDestination, setDontFragment, setECT, setExtension, setFlag, setFragmentOffset, setFragmentParam, setHops, setID, setIncomingIf, setLabel, setLabelled, setMoreFragment, setNextHop, setPacketInPacket, setProtocol, setRouterAlertEnabled, setSource, setTOS, setTOSBit, setTTL
 
Methods inherited from class drcl.net.Packet
getBody, getByteCount, getHeaderSize, getNumberCount, getPacketCount, getPacketSize, getPacketType, getSize, getSizeCount, getTimestamp, isByteCountSupported, isPacketCountSupported, isTimestampSupported, setBody, setBody, setHeaderSize, setPacketSize, setSize, setTimestamp, toString, toString, wraps
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RT_REQUEST

public static final int RT_REQUEST
See Also:
Constant Field Values

RT_RESPONSE

public static final int RT_RESPONSE
See Also:
Constant Field Values
Constructor Detail

TraceRTPkt

public TraceRTPkt(int iType,
                  long destAddr_,
                  int pktSize_)
Method Detail

addHop

public void addHop(double now_,
                   long ip)
This method adds the given ip address at the end of the list

Parameters:
ip - The ip address

getList

public java.lang.Object[] getList()
This method returns the whole list of IP Address

Returns:
Object[] Content of IP list

getType

public int getType()
Return the TraceRT packet type. - RT_REQUEST - RT_RESPONSE


setType

public void setType(int type_)

_toString

public java.lang.String _toString(java.lang.String separator_)
Description copied from class: Packet
Prints the packet header.

Overrides:
_toString in class InetPacket

DRCL J-Sim API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~