com.ibm.as400.util.commtrace
Class PrefixInfo

java.lang.Object
  extended bycom.ibm.as400.util.commtrace.Header
      extended bycom.ibm.as400.util.commtrace.ICMP6Header
          extended bycom.ibm.as400.util.commtrace.NDOption
              extended bycom.ibm.as400.util.commtrace.PrefixInfo

public class PrefixInfo
extends NDOption

A PrefixInfo Header.
Extends NDOption's methods to parse, print, and allow easy access to the PrefixInfo Header


Field Summary
 
Fields inherited from class com.ibm.as400.util.commtrace.NDOption
MTU, PREFIXINFO, REDIRECTED, SOURCELLA, TARGETLLA
 
Fields inherited from class com.ibm.as400.util.commtrace.Header
EXTAH, EXTDEST, EXTESP, EXTFRAG, EXTHOPBYHOP, EXTROUTE, ICMP4, ICMP6, IP4, IP6, TCP, UDP, UNK
 
Method Summary
 String getAFlag()
          Returns the autonomous address-configuration flag of this PrefixInfo header.
 String getLFlag()
          Returns the on-link flag of this PrefixInfo header.
 String getPreferredLifeTime()
          Returns the preferred life time of this PrefixInfo header.
 String getPrefix()
          Returns the prefix of this PrefixInfo header.
 String getPrefixLength()
          Returns the prefix length of this PrefixInfo header.
 String getValidLifeTime()
          Returns the valid life time of this PrefixInfo header.
 String toString(FormatProperties filter)
          Returns a printable representation of this header.
 
Methods inherited from class com.ibm.as400.util.commtrace.NDOption
getHeaderLen, getLength, getNDType, getNextHeader
 
Methods inherited from class com.ibm.as400.util.commtrace.ICMP6Header
getChecksum, getCode, getTypeField
 
Methods inherited from class com.ibm.as400.util.commtrace.Header
getHeaderData, getName, getPayload, getPayLoad, getPayloadBytes, getPayloadHexString, getType, printHexHeader, toHexString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public String toString(FormatProperties filter)
Returns a printable representation of this header.

Overrides:
toString in class ICMP6Header
Parameters:
filter - FormatProperties object for filtering this header.
Returns:
Returns a string representation of this header.

getPrefixLength

public String getPrefixLength()
Returns the prefix length of this PrefixInfo header.

Returns:
String containing a decimal representation of the prefix length.

getLFlag

public String getLFlag()
Returns the on-link flag of this PrefixInfo header.

Returns:
String containing a Byte.toString(byte) representation of this flag bit.

getAFlag

public String getAFlag()
Returns the autonomous address-configuration flag of this PrefixInfo header.

Returns:
String containing a Byte.toString(byte) representation of this flag bit.

getValidLifeTime

public String getValidLifeTime()
Returns the valid life time of this PrefixInfo header.

Returns:
String containing a decimal representation of the valid life time.

getPreferredLifeTime

public String getPreferredLifeTime()
Returns the preferred life time of this PrefixInfo header.

Returns:
String containing a decimal representation of the preferred life time.

getPrefix

public String getPrefix()
Returns the prefix of this PrefixInfo header.

Returns:
String containing a decimal representation of the prefix.