Class IcmpV6RouterAdvertisementPacket.IcmpV6RouterAdvertisementHeader

java.lang.Object
org.pcap4j.packet.AbstractPacket.AbstractHeader
org.pcap4j.packet.IcmpV6RouterAdvertisementPacket.IcmpV6RouterAdvertisementHeader
All Implemented Interfaces:
Serializable, Packet.Header
Enclosing class:
IcmpV6RouterAdvertisementPacket

public static final class IcmpV6RouterAdvertisementPacket.IcmpV6RouterAdvertisementHeader extends AbstractPacket.AbstractHeader
Since:
pcap4j 0.9.15
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • CUR_HOP_LIMIT_OFFSET

      private static final int CUR_HOP_LIMIT_OFFSET
      See Also:
    • CUR_HOP_LIMIT_SIZE

      private static final int CUR_HOP_LIMIT_SIZE
      See Also:
    • M_O_RESERVED_OFFSET

      private static final int M_O_RESERVED_OFFSET
      See Also:
    • M_O_RESERVED_SIZE

      private static final int M_O_RESERVED_SIZE
      See Also:
    • ROUTER_LIFETIME_OFFSET

      private static final int ROUTER_LIFETIME_OFFSET
      See Also:
    • ROUTER_LIFETIME_SIZE

      private static final int ROUTER_LIFETIME_SIZE
      See Also:
    • REACHABLE_TIME_OFFSET

      private static final int REACHABLE_TIME_OFFSET
      See Also:
    • REACHABLE_TIME_SIZE

      private static final int REACHABLE_TIME_SIZE
      See Also:
    • RETRANS_TIMER_OFFSET

      private static final int RETRANS_TIMER_OFFSET
      See Also:
    • RETRANS_TIMER_SIZE

      private static final int RETRANS_TIMER_SIZE
      See Also:
    • OPTIONS_OFFSET

      private static final int OPTIONS_OFFSET
      See Also:
    • curHopLimit

      private final byte curHopLimit
    • managedAddressConfigurationFlag

      private final boolean managedAddressConfigurationFlag
    • otherConfigurationFlag

      private final boolean otherConfigurationFlag
    • reserved

      private final byte reserved
    • routerLifetime

      private final short routerLifetime
    • reachableTime

      private final int reachableTime
    • retransTimer

      private final int retransTimer
    • options

  • Constructor Details

  • Method Details

    • getCurHopLimit

      public byte getCurHopLimit()
      Returns:
      curHopLimit
    • getCurHopLimitAsInt

      public int getCurHopLimitAsInt()
      Returns:
      curHopLimit
    • getManagedAddressConfigurationFlag

      public boolean getManagedAddressConfigurationFlag()
      Returns:
      managedAddressConfigurationFlag
    • getOtherConfigurationFlag

      public boolean getOtherConfigurationFlag()
      Returns:
      otherConfigurationFlag
    • getReserved

      public int getReserved()
      Returns:
      reserved
    • getRouterLifetime

      public short getRouterLifetime()
      Returns:
      routerLifetime
    • getRouterLifetimeAsInt

      public int getRouterLifetimeAsInt()
      Returns:
      routerLifetime
    • getReachableTime

      public int getReachableTime()
      Returns:
      reachableTime
    • getReachableTimeAsLong

      public long getReachableTimeAsLong()
      Returns:
      reachableTime
    • getRetransTimer

      public int getRetransTimer()
      Returns:
      retransTimer
    • getRetransTimerAsLong

      public long getRetransTimerAsLong()
      Returns:
      retransTimer
    • getOptions

      Returns:
      options
    • getRawFields

      protected List<byte[]> getRawFields()
      Description copied from class: AbstractPacket.AbstractHeader
      Returns a list of byte arrays which represents this header's fields. This method is called by calcLength() and buildRawData().
      Specified by:
      getRawFields in class AbstractPacket.AbstractHeader
      Returns:
      a list of byte arrays which represents this header's fields
    • calcLength

      protected int calcLength()
      Description copied from class: AbstractPacket.AbstractHeader
      This method calculates the value length() will return by adding up the lengths of byte arrays in the list getRawFields() returns.
      Overrides:
      calcLength in class AbstractPacket.AbstractHeader
      Returns:
      a calculated length
    • buildString

      protected String buildString()
      Description copied from class: AbstractPacket.AbstractHeader
      This method builds the value toString() will return.
      Overrides:
      buildString in class AbstractPacket.AbstractHeader
      Returns:
      a string representation of this object
    • equals

      public boolean equals(Object obj)
      Description copied from class: AbstractPacket.AbstractHeader
      Indicates whether some other object is "equal to" this one using return values of getRawData(). This method should be overridden so that it does more strict comparisons more efficiently.
      Overrides:
      equals in class AbstractPacket.AbstractHeader
    • calcHashCode

      protected int calcHashCode()
      Description copied from class: AbstractPacket.AbstractHeader
      This method builds the value hashCode() will return using the byte array getRawData() returns. This method may be better to be overridden for performance reason.
      Overrides:
      calcHashCode in class AbstractPacket.AbstractHeader
      Returns:
      a calculated hash code value for the object