com.ibm.as400.util.commtrace
Class NDOption
- java.lang.Object
-
- com.ibm.as400.util.commtrace.Header
-
- com.ibm.as400.util.commtrace.ICMP6Header
-
- com.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
Fields Modifier and Type Field and Description static int
MTU
A Neighbor Discovery MTU Headerstatic int
PREFIXINFO
A Neighbor Discovery Prefix Info Headerstatic int
REDIRECTED
A Neighbor Discovery Redirected Headerstatic int
SOURCELLA
A Neighbor Discovery Source LLA Headerstatic int
TARGETLLA
A Neighbor Discovery Target LLA Header
-
Method Summary
Methods Modifier and Type Method and Description int
getHeaderLen()
Returns the length of this header.java.lang.String
getLength()
Returns the length of this NDOption Header.java.lang.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
-
-
-
-
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 classICMP6Header
- Returns:
- The length of this header.
-
getNextHeader
public Header getNextHeader()
Returns the next header in the packet.- Overrides:
getNextHeader
in classICMP6Header
- Returns:
- Will always return either null or a NDOption header.
-
getNDType
public java.lang.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 java.lang.String getLength()
Returns the length of this NDOption Header.- Returns:
- String containing a decimal representation of the length of this header.
-
-