com.ibm.as400.util.commtrace
Class NDOption

java.lang.Object
  extended bycom.ibm.as400.util.commtrace.Header
      extended bycom.ibm.as400.util.commtrace.ICMP6Header
          extended bycom.ibm.as400.util.commtrace.NDOption
Direct Known Subclasses:
MTU, PrefixInfo, SourceLLA, TargetLLA

public abstract class NDOption
extends ICMP6Header

An ICMPv6 Neighbor Discovery Header.
Extends Header's methods to parse, print, and allow easy access to the Neighbor Discovery Header.


Field Summary
static int MTU
          A Neighbor Discovery MTU Header
static int PREFIXINFO
          A Neighbor Discovery Prefix Info Header
static int REDIRECTED
          A Neighbor Discovery Redirected Header
static int SOURCELLA
          A Neighbor Discovery Source LLA Header
static int TARGETLLA
          A Neighbor Discovery Target LLA Header
 
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
 int getHeaderLen()
          Returns the length of this header.
 String getLength()
          Returns the length of this NDOption Header.
 String getNDType()
          Returns the Neighbor Discovery type of this NDOption Header.
 Header getNextHeader()
          Returns the next header in the packet.
 
Methods inherited from class com.ibm.as400.util.commtrace.ICMP6Header
getChecksum, getCode, getTypeField, toString
 
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
 

Field Detail

SOURCELLA

public static final int SOURCELLA
A Neighbor Discovery Source LLA Header

See Also:
Constant Field Values

TARGETLLA

public static final int TARGETLLA
A Neighbor Discovery Target LLA Header

See Also:
Constant Field Values

PREFIXINFO

public static final int PREFIXINFO
A Neighbor Discovery Prefix Info Header

See Also:
Constant Field Values

REDIRECTED

public static final int REDIRECTED
A Neighbor Discovery Redirected Header

See Also:
Constant Field Values

MTU

public static final int MTU
A Neighbor Discovery MTU Header

See Also:
Constant Field Values
Method Detail

getHeaderLen

public int getHeaderLen()
Returns the length of this header.

Overrides:
getHeaderLen in class ICMP6Header
Returns:
The length of this header.

getNextHeader

public Header getNextHeader()
Returns the next header in the packet.

Overrides:
getNextHeader in class ICMP6Header
Returns:
Will always return either null or a NDOption header.

getNDType

public String getNDType()
Returns the Neighbor Discovery type of this NDOption Header.

Returns:
String containing a decimal representation of the Neighbor Discovery type of this header.

getLength

public String getLength()
Returns the length of this NDOption Header.

Returns:
String containing a decimal representation of the length of this header.