com.ibm.as400.util.commtrace

Class LanHeader

  • java.lang.Object
    • com.ibm.as400.util.commtrace.LanHeader


  • public class LanHeader
    extends java.lang.Object
    Allows the user to parse, print, and have easy access to the LanHeader.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      int getDataStart()
      Returns the byte at which the rest of this packet's header starts.
      java.lang.String getEth2DestMacAddress()
      Returns the Ethernet2 destination mac of the Lan header.
      java.lang.String getEth2SrcMacAddress()
      Returns the Ethernet2 source mac of the Lan header.
      java.lang.String getEthDestMacAddress()
      Returns the Ethernet destination mac of the Lan header.
      java.lang.String getEthFrameType()
      Returns the frame type of the Lan header.
      java.lang.String getEthSaps()
      Returns the Service Access Points of the Lan header.
      java.lang.String getEthSrcMacAddress()
      Returns the Ethernet source mac of the Lan header.
      int getFrameType()
      Returns the frame type of this packet.
      java.lang.String getLanRouteLength()
      Returns the lan routing length.
      java.lang.String getMacAddress()
      Returns the destination MAC address of this packet.
      java.lang.String getTrnDestMacAddress()
      Returns the Tokenring destination mac of the Lan header.
      java.lang.String getTrnFrameType()
      Returns the Tokenring frame type information of the Lan header.
      java.lang.String getTrnRouteInfo()
      Returns the Tokenring routing information of the Lan header.
      java.lang.String getTrnSaps()
      Returns the Tokenring Service Access Points of the Lan header.
      java.lang.String getTrnSrcMacAddress()
      Returns the Tokenring source mac of the Lan header.
      java.lang.String printRoutingData()
      Returns a String with the tokenring routing data.
      java.lang.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 java.lang.String getMacAddress()
        Returns the destination MAC address of this packet.
        Returns:
        String MAC address.
      • printRoutingData

        public java.lang.String printRoutingData()
        Returns a String with the tokenring routing data.
        Returns:
        String routing data.
      • toString

        public java.lang.String toString()
        Returns a String representation of this lan header with source/destination mac addresses, frame format, and frametype.
        Overrides:
        toString in class java.lang.Object
        Returns:
        Returns a string representation of this header.
      • getLanRouteLength

        public java.lang.String getLanRouteLength()
        Returns the lan routing length.
        Returns:
        String containing a decimal representation of the lan routing length.
      • getEth2DestMacAddress

        public java.lang.String getEth2DestMacAddress()
        Returns the Ethernet2 destination mac of the Lan header.
        Returns:
        String containing a hexadecimal representation of the destination mac address.
      • getEth2SrcMacAddress

        public java.lang.String getEth2SrcMacAddress()
        Returns the Ethernet2 source mac of the Lan header.
        Returns:
        String containing a hexadecimal representation of the source mac address.
      • getEthDestMacAddress

        public java.lang.String getEthDestMacAddress()
        Returns the Ethernet destination mac of the Lan header.
        Returns:
        String containing a hexadecimal representation of the destination mac address.
      • getEthSrcMacAddress

        public java.lang.String getEthSrcMacAddress()
        Returns the Ethernet source mac of the Lan header.
        Returns:
        String containing a hexadecimal representation of the source mac address.
      • getEthSaps

        public java.lang.String getEthSaps()
        Returns the Service Access Points of the Lan header.
        Returns:
        String containing a decimal representation of the Service Access Point.
      • getEthFrameType

        public java.lang.String getEthFrameType()
        Returns the frame type of the Lan header.
        Returns:
        String containing a decimal representation of the frame type.
      • getTrnDestMacAddress

        public java.lang.String getTrnDestMacAddress()
        Returns the Tokenring destination mac of the Lan header.
        Returns:
        String containing a hexadecimal representation of the destination mac address.
      • getTrnSrcMacAddress

        public java.lang.String getTrnSrcMacAddress()
        Returns the Tokenring source mac of the Lan header.
        Returns:
        String containing a hexadecimal representation of the source mac address.
      • getTrnRouteInfo

        public java.lang.String getTrnRouteInfo()
        Returns the Tokenring routing information of the Lan header.
        Returns:
        String containing a decimal representation of the routing information.
      • getTrnSaps

        public java.lang.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 java.lang.String getTrnFrameType()
        Returns the Tokenring frame type information of the Lan header.
        Returns:
        String containing a decimal representation of the routing information.