Package org.opennms.jicmp.ipv6
Class ICMPv6Packet
- java.lang.Object
-
- org.opennms.jicmp.ipv6.ICMPv6Packet
-
- Direct Known Subclasses:
ICMPv6EchoPacket
public class ICMPv6Packet extends java.lang.Object
ICMPPacket- Author:
- brozow
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ICMPv6Packet.Type
-
Field Summary
Fields Modifier and Type Field Description static int
CHECKSUM_INDEX
-
Constructor Summary
Constructors Constructor Description ICMPv6Packet(int size)
ICMPv6Packet(java.nio.ByteBuffer ipPayload)
ICMPv6Packet(ICMPv6Packet icmpPacket)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(java.net.InetAddress destinationAddress)
-
-
-
Field Detail
-
CHECKSUM_INDEX
public static final int CHECKSUM_INDEX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ICMPv6Packet
public ICMPv6Packet(java.nio.ByteBuffer ipPayload)
-
ICMPv6Packet
public ICMPv6Packet(ICMPv6Packet icmpPacket)
-
ICMPv6Packet
public ICMPv6Packet(int size)
-
-
Method Detail
-
getPacketLength
public int getPacketLength()
-
getType
public ICMPv6Packet.Type getType()
-
setType
public void setType(ICMPv6Packet.Type t)
-
getCode
public int getCode()
-
setCode
public void setCode(int code)
-
getChecksum
public int getChecksum()
-
computeChecksum
public int computeChecksum()
-
setBytes
public void setBytes(int index, byte[] b)
-
makeUnsignedShort
public int makeUnsignedShort(byte b1, byte b0)
-
getUnsignedShort
public int getUnsignedShort(int index)
-
setUnsignedShort
public void setUnsignedShort(int index, int us)
-
toDatagramPacket
public NativeDatagramPacket toDatagramPacket(java.net.InetAddress destinationAddress)
-
-