com.h3c.util.pkt

## Class IcmpV6.RedirectData

- java.lang.Object
- - com.h3c.util.pkt.IcmpV6.RedirectData

- Enclosing class:
    IcmpV6

      public static class IcmpV6.RedirectData
      extends Object

  Neighbor Discovery - Redirect message data store (immutable).

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `IcmpV6.RedirectData(IpAddress targetAddr, IpAddress dstAddr)` Create a new Redirect message data store.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `IpAddress` | `dstAddr()` Returns the destination address.
    `IpAddress` | `targetAddr()` Returns the target address.
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### IcmpV6.RedirectData

          public IcmpV6.RedirectData(IpAddress targetAddr,
                             IpAddress dstAddr)

      Create a new Redirect message data store.
      Parameters:
        `targetAddr` - target address
        `dstAddr` - destination address

  - ### Method Detail

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### targetAddr

          public IpAddress targetAddr()

      Returns the target address.
      Returns:
        the IPv6 address

    - #### dstAddr

          public IpAddress dstAddr()

      Returns the destination address.
      Returns:
        the IPv6 address

Copyright © 2014. All Rights Reserved.