public static final class IpV6Packet.IpV6Header extends AbstractPacket.AbstractHeader implements IpPacket.IpHeader
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.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. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one using
return values of
getRawData(). |
java.net.Inet6Address |
getDstAddr() |
IpV6Packet.IpV6FlowLabel |
getFlowLabel() |
byte |
getHopLimit() |
int |
getHopLimitAsInt() |
IpNumber |
getNextHeader() |
short |
getPayloadLength() |
int |
getPayloadLengthAsInt() |
IpNumber |
getProtocol() |
protected java.util.List<byte[]> |
getRawFields()
Returns a list of byte arrays which represents this header's fields.
|
java.net.Inet6Address |
getSrcAddr() |
IpV6Packet.IpV6TrafficClass |
getTrafficClass() |
IpVersion |
getVersion() |
int |
length()
Returns the header length in bytes.
|
buildHexString, buildRawData, calcLength, getRawData, hashCode, toHexString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetRawDatapublic IpVersion getVersion()
getVersion in interface IpPacket.IpHeaderpublic IpV6Packet.IpV6TrafficClass getTrafficClass()
public IpV6Packet.IpV6FlowLabel getFlowLabel()
public short getPayloadLength()
public int getPayloadLengthAsInt()
public IpNumber getNextHeader()
public IpNumber getProtocol()
getProtocol in interface IpPacket.IpHeaderpublic byte getHopLimit()
public int getHopLimitAsInt()
public java.net.Inet6Address getSrcAddr()
getSrcAddr in interface IpPacket.IpHeaderpublic java.net.Inet6Address getDstAddr()
getDstAddr in interface IpPacket.IpHeaderprotected java.util.List<byte[]> getRawFields()
AbstractPacket.AbstractHeadercalcLength()
and buildRawData().getRawFields in class AbstractPacket.AbstractHeaderpublic int length()
AbstractPacket.AbstractHeadercalcLength() and caches the return value
when it is called for the first time,
and then, this method returns the cached value from the second time.length in interface Packet.Headerlength in class AbstractPacket.AbstractHeaderprotected java.lang.String buildString()
AbstractPacket.AbstractHeadertoString() will return.buildString in class AbstractPacket.AbstractHeaderpublic boolean equals(java.lang.Object obj)
AbstractPacket.AbstractHeadergetRawData().
This method should be overridden so that it does more strict comparisons
more efficiently.equals in class AbstractPacket.AbstractHeaderprotected int calcHashCode()
AbstractPacket.AbstractHeaderhashCode() will return using
the byte array getRawData() returns.
This method may be better to be overridden for performance reason.calcHashCode in class AbstractPacket.AbstractHeaderCopyright © 2011 - 2018 Pcap4J.org. All rights reserved.