public static final class IcmpV6RouterAdvertisementPacket.IcmpV6RouterAdvertisementHeader extends AbstractPacket.AbstractHeader
Modifier and Type | Method and Description |
---|---|
protected String |
buildString()
This method builds the value
toString() will return. |
protected int |
calcHashCode()
This method builds the value
hashCode() will return using
the byte array getRawData() returns. |
protected int |
calcLength()
This method calculates the value
length() will return by
adding up the lengths of byte arrays in the list
getRawFields() returns. |
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one using
return values of
getRawData() . |
byte |
getCurHopLimit() |
int |
getCurHopLimitAsInt() |
boolean |
getManagedAddressConfigurationFlag() |
List<IcmpV6CommonPacket.IpV6NeighborDiscoveryOption> |
getOptions() |
boolean |
getOtherConfigurationFlag() |
protected List<byte[]> |
getRawFields()
Returns a list of byte arrays which represents this header's fields.
|
int |
getReachableTime() |
long |
getReachableTimeAsLong() |
int |
getReserved() |
int |
getRetransTimer() |
long |
getRetransTimerAsLong() |
short |
getRouterLifetime() |
int |
getRouterLifetimeAsInt() |
buildHexString, buildRawData, getRawData, hashCode, length, toHexString, toString
public byte getCurHopLimit()
public int getCurHopLimitAsInt()
public boolean getManagedAddressConfigurationFlag()
public boolean getOtherConfigurationFlag()
public int getReserved()
public short getRouterLifetime()
public int getRouterLifetimeAsInt()
public int getReachableTime()
public long getReachableTimeAsLong()
public int getRetransTimer()
public long getRetransTimerAsLong()
public List<IcmpV6CommonPacket.IpV6NeighborDiscoveryOption> getOptions()
protected List<byte[]> getRawFields()
AbstractPacket.AbstractHeader
calcLength()
and buildRawData()
.getRawFields
in class AbstractPacket.AbstractHeader
protected int calcLength()
AbstractPacket.AbstractHeader
length()
will return by
adding up the lengths of byte arrays in the list
getRawFields()
returns.calcLength
in class AbstractPacket.AbstractHeader
protected String buildString()
AbstractPacket.AbstractHeader
toString()
will return.buildString
in class AbstractPacket.AbstractHeader
public boolean equals(Object obj)
AbstractPacket.AbstractHeader
getRawData()
.
This method should be overridden so that it does more strict comparisons
more efficiently.equals
in class AbstractPacket.AbstractHeader
protected int calcHashCode()
AbstractPacket.AbstractHeader
hashCode()
will return using
the byte array getRawData()
returns.
This method may be better to be overridden for performance reason.calcHashCode
in class AbstractPacket.AbstractHeader
Copyright © 2011–2016 Pcap4J.org. All rights reserved.