public class ICMPv6Packet extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ICMPv6Packet.Type |
Modifier and Type | Field and Description |
---|---|
static int |
CHECKSUM_INDEX |
Constructor and Description |
---|
ICMPv6Packet(ByteBuffer ipPayload) |
ICMPv6Packet(ICMPv6Packet icmpPacket) |
ICMPv6Packet(int size) |
Modifier and Type | Method and Description |
---|---|
int |
computeChecksum() |
int |
getChecksum() |
int |
getCode() |
int |
getPacketLength() |
ICMPv6Packet.Type |
getType() |
int |
getUnsignedShort(int index) |
int |
makeUnsignedShort(byte b1,
byte b0) |
void |
setBytes(int index,
byte[] b) |
void |
setCode(int code) |
void |
setType(ICMPv6Packet.Type t) |
void |
setUnsignedShort(int index,
int us) |
NativeDatagramPacket |
toDatagramPacket(InetAddress destinationAddress) |
public static final int CHECKSUM_INDEX
public ICMPv6Packet(ByteBuffer ipPayload)
public ICMPv6Packet(ICMPv6Packet icmpPacket)
public ICMPv6Packet(int size)
public int getPacketLength()
public ICMPv6Packet.Type getType()
public void setType(ICMPv6Packet.Type t)
public int getCode()
public void setCode(int code)
public int getChecksum()
public int computeChecksum()
public void setBytes(int index, byte[] b)
public int makeUnsignedShort(byte b1, byte b0)
public int getUnsignedShort(int index)
public void setUnsignedShort(int index, int us)
public NativeDatagramPacket toDatagramPacket(InetAddress destinationAddress)
Copyright © 2021. All rights reserved.