public class ICMP6 extends BasePacket
Modifier and Type | Field and Description |
---|---|
static byte |
ADDR_UNREACH
Address unreachable.
|
static byte |
BEYOND_SCOPE
Beyond scope of source address.
|
protected short |
checksum |
static byte |
COMM_PROHIBIT
Communication with destination administratively prohibited.
|
static byte |
DEFRAG_TIME_EXCEED
Fragment reassembly time exceeded.
|
static byte |
DEST_UNREACH
Destination Unreachable.
|
static byte |
ECHO_REPLY
Echo Reply.
|
static byte |
ECHO_REQUEST
Echo Request.
|
static byte |
FAIL_POLICY
Source address failed ingress/egress policy.
|
static byte |
HDR_FIELD_ERR
Erroneous header field encountered.
|
static byte |
HEADER_LENGTH |
static byte |
HOP_LIMIT_EXCEED
Hop limit exceeded in transit.
|
protected byte |
icmpCode |
protected byte |
icmpType |
static byte |
IPV6_OPT_ERR
Unrecognized IPv6 option encountered.
|
static byte |
MCAST_DONE
Multicast Listener Done.
|
static byte |
MCAST_QUERY
Multicast Listener Query.
|
static byte |
MCAST_REPORT
Multicast Listener Report.
|
static byte |
NEIGHBOR_ADVERTISEMENT
Neighbor Advertisement.
|
static byte |
NEIGHBOR_SOLICITATION
Neighbor Solicitation.
|
static byte |
NEXT_HEADER_ERR
Unrecognized Next Header type encountered.
|
static byte |
NO_ROUTE
No route to destination.
|
static byte |
PARAM_ERR
Parameter Problem.
|
static byte |
PKT_TOO_BIG
Packet Too Big.
|
static byte |
PORT_UNREACH
Port unreachable.
|
static byte |
REDIRECT
Redirect Message.
|
static byte |
REJECT_ROUTE
Reject route to destination.
|
static byte |
ROUTER_ADVERTISEMENT
Router Advertisement.
|
static byte |
ROUTER_SOLICITATION
Router Solicitation.
|
static byte |
SRC_ROUTING_HEADER_ERR
Error in Source Routing Header.
|
static byte |
TIME_EXCEED
Time Exceeded.
|
static java.util.Map<java.lang.Byte,Deserializer<? extends IPacket>> |
TYPE_DESERIALIZER_MAP |
parent, payload
Constructor and Description |
---|
ICMP6() |
Modifier and Type | Method and Description |
---|---|
static Ethernet |
buildIcmp6Reply(Ethernet ethRequest)
Builds an ICMPv6 reply using the supplied ICMPv6 request.
|
static Deserializer<ICMP6> |
deserializer()
Deserializer function for ICMPv6 packets.
|
boolean |
equals(java.lang.Object obj) |
short |
getChecksum()
Gets checksum.
|
byte |
getIcmpCode()
Gets ICMP6 code.
|
byte |
getIcmpType()
Gets ICMP6 type.
|
int |
hashCode() |
byte[] |
serialize()
Sets all payloads parent packet if applicable, then serializes this
packet and all payloads.
|
ICMP6 |
setChecksum(short checksum)
Sets checksum.
|
ICMP6 |
setIcmpCode(byte icmpCode)
Sets ICMP6 code.
|
ICMP6 |
setIcmpType(byte icmpType)
Sets ICMP6 type.
|
java.lang.String |
toString() |
clone, getParent, getPayload, resetChecksum, setParent, setPayload
public static final byte HEADER_LENGTH
public static final byte DEST_UNREACH
public static final byte PKT_TOO_BIG
public static final byte TIME_EXCEED
public static final byte PARAM_ERR
public static final byte ECHO_REQUEST
public static final byte ECHO_REPLY
public static final byte MCAST_QUERY
public static final byte MCAST_REPORT
public static final byte MCAST_DONE
public static final byte ROUTER_SOLICITATION
public static final byte ROUTER_ADVERTISEMENT
public static final byte NEIGHBOR_SOLICITATION
public static final byte NEIGHBOR_ADVERTISEMENT
public static final byte REDIRECT
public static final byte NO_ROUTE
public static final byte COMM_PROHIBIT
public static final byte BEYOND_SCOPE
public static final byte ADDR_UNREACH
public static final byte PORT_UNREACH
public static final byte FAIL_POLICY
public static final byte REJECT_ROUTE
public static final byte SRC_ROUTING_HEADER_ERR
public static final byte HOP_LIMIT_EXCEED
public static final byte DEFRAG_TIME_EXCEED
public static final byte HDR_FIELD_ERR
public static final byte NEXT_HEADER_ERR
public static final byte IPV6_OPT_ERR
public static final java.util.Map<java.lang.Byte,Deserializer<? extends IPacket>> TYPE_DESERIALIZER_MAP
protected byte icmpType
protected byte icmpCode
protected short checksum
public byte getIcmpType()
public ICMP6 setIcmpType(byte icmpType)
icmpType
- the ICMP type to setpublic byte getIcmpCode()
public ICMP6 setIcmpCode(byte icmpCode)
icmpCode
- the ICMP6 code to setpublic short getChecksum()
public ICMP6 setChecksum(short checksum)
checksum
- the checksum to setpublic byte[] serialize()
IPacket
public int hashCode()
hashCode
in class BasePacket
public boolean equals(java.lang.Object obj)
equals
in class BasePacket
public static Deserializer<ICMP6> deserializer()
public java.lang.String toString()
toString
in class java.lang.Object