com.ibm.as400.util.commtrace

Class 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 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
    >
    • 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 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.