com.h3c.util.pkt

## Class IcmpV6.NeighborAdvertiseData

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

- Enclosing class:
    IcmpV6

      public static class IcmpV6.NeighborAdvertiseData
      extends Object

  Neighbor Discovery - Neighbor Advertisement data store (immutable).

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `IcmpV6.NeighborAdvertiseData(boolean isSenderRouter, boolean isSolicitResponse, boolean override, IpAddress targetAddr)` Create a new Neighbor Solicitation data store.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `isSenderRouter()` Returns true if the sender is a router.
    `boolean` | `isSolicitResponse()` Returns true if this is a response to a solicitation.
    `boolean` | `override()` Returns true if this should override the existing cached 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.NeighborAdvertiseData

          public IcmpV6.NeighborAdvertiseData(boolean isSenderRouter,
                                      boolean isSolicitResponse,
                                      boolean override,
                                      IpAddress targetAddr)

      Create a new Neighbor Solicitation data store.
      Parameters:
        `isSenderRouter` - true if the sender is a router
        `isSolicitResponse` - true if this is a solicitation response
        `override` - true if this should override cached address
        `targetAddr` - target address

  - ### Method Detail

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### isSenderRouter

          public boolean isSenderRouter()

      Returns true if the sender is a router.
      Returns:
        true if the sender is a router

    - #### isSolicitResponse

          public boolean isSolicitResponse()

      Returns true if this is a response to a solicitation.
      Returns:
        true if this is a solicitation response

    - #### override

          public boolean override()

      Returns true if this should override the existing cached address.
      Returns:
        true if this should override the cached address

    - #### targetAddr

          public IpAddress targetAddr()

      Returns the target address.
      Returns:
        the IPv6 address

Copyright © 2014. All Rights Reserved.