com.ibm.as400.util.commtrace
Class LanHeader

java.lang.Object
  extended bycom.ibm.as400.util.commtrace.LanHeader

public class LanHeader
extends Object

Allows the user to parse, print, and have easy access to the LanHeader.


Method Summary
 int getDataStart()
          Returns the byte at which the rest of this packet's header starts.
 String getEth2DestMacAddress()
          Returns the Ethernet2 destination mac of the Lan header.
 String getEth2SrcMacAddress()
          Returns the Ethernet2 source mac of the Lan header.
 String getEthDestMacAddress()
          Returns the Ethernet destination mac of the Lan header.
 String getEthFrameType()
          Returns the frame type of the Lan header.
 String getEthSaps()
          Returns the Service Access Points of the Lan header.
 String getEthSrcMacAddress()
          Returns the Ethernet source mac of the Lan header.
 int getFrameType()
          Returns the frame type of this packet.
 String getLanRouteLength()
          Returns the lan routing length.
 String getMacAddress()
          Returns the destination MAC address of this packet.
 String getTrnDestMacAddress()
          Returns the Tokenring destination mac of the Lan header.
 String getTrnFrameType()
          Returns the Tokenring frame type information of the Lan header.
 String getTrnRouteInfo()
          Returns the Tokenring routing information of the Lan header.
 String getTrnSaps()
          Returns the Tokenring Service Access Points of the Lan header.
 String getTrnSrcMacAddress()
          Returns the Tokenring source mac of the Lan header.
 String printRoutingData()
          Returns a String with the tokenring routing data.
 String toString()
          Returns a String representation of this lan header with source/destination mac addresses, frame format, and frametype.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getDataStart

public int getDataStart()
Returns the byte at which the rest of this packet's header starts.

Returns:
The start of the data.

getFrameType

public int getFrameType()
Returns the frame type of this packet.

Returns:
The frame type.

getMacAddress

public String getMacAddress()
Returns the destination MAC address of this packet.

Returns:
String MAC address.

printRoutingData

public String printRoutingData()
Returns a String with the tokenring routing data.

Returns:
String routing data.

toString

public String toString()
Returns a String representation of this lan header with source/destination mac addresses, frame format, and frametype.

Returns:
Returns a string representation of this header.

getLanRouteLength

public String getLanRouteLength()
Returns the lan routing length.

Returns:
String containing a decimal representation of the lan routing length.

getEth2DestMacAddress

public String getEth2DestMacAddress()
Returns the Ethernet2 destination mac of the Lan header.

Returns:
String containing a hexadecimal representation of the destination mac address.

getEth2SrcMacAddress

public String getEth2SrcMacAddress()
Returns the Ethernet2 source mac of the Lan header.

Returns:
String containing a hexadecimal representation of the source mac address.

getEthDestMacAddress

public String getEthDestMacAddress()
Returns the Ethernet destination mac of the Lan header.

Returns:
String containing a hexadecimal representation of the destination mac address.

getEthSrcMacAddress

public String getEthSrcMacAddress()
Returns the Ethernet source mac of the Lan header.

Returns:
String containing a hexadecimal representation of the source mac address.

getEthSaps

public String getEthSaps()
Returns the Service Access Points of the Lan header.

Returns:
String containing a decimal representation of the Service Access Point.

getEthFrameType

public String getEthFrameType()
Returns the frame type of the Lan header.

Returns:
String containing a decimal representation of the frame type.

getTrnDestMacAddress

public String getTrnDestMacAddress()
Returns the Tokenring destination mac of the Lan header.

Returns:
String containing a hexadecimal representation of the destination mac address.

getTrnSrcMacAddress

public String getTrnSrcMacAddress()
Returns the Tokenring source mac of the Lan header.

Returns:
String containing a hexadecimal representation of the source mac address.

getTrnRouteInfo

public String getTrnRouteInfo()
Returns the Tokenring routing information of the Lan header.

Returns:
String containing a decimal representation of the routing information.

getTrnSaps

public String getTrnSaps()
Returns the Tokenring Service Access Points of the Lan header.

Returns:
String containing a decimal representation of the Service Access Points.

getTrnFrameType

public String getTrnFrameType()
Returns the Tokenring frame type information of the Lan header.

Returns:
String containing a decimal representation of the routing information.