Package org.opennms.jicmp.ipv6
Class ICMPv6Packet
- java.lang.Object
-
- org.opennms.jicmp.ipv6.ICMPv6Packet
-
- Direct Known Subclasses:
ICMPv6EchoPacket
public class ICMPv6Packet extends Object
ICMPPacket- Author:
- brozow
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classICMPv6Packet.Type
-
Field Summary
Fields Modifier and Type Field Description static intCHECKSUM_INDEX
-
Constructor Summary
Constructors Constructor Description ICMPv6Packet(int size)ICMPv6Packet(ByteBuffer ipPayload)ICMPv6Packet(ICMPv6Packet icmpPacket)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcomputeChecksum()intgetChecksum()intgetCode()intgetPacketLength()ICMPv6Packet.TypegetType()intgetUnsignedShort(int index)intmakeUnsignedShort(byte b1, byte b0)voidsetBytes(int index, byte[] b)voidsetCode(int code)voidsetType(ICMPv6Packet.Type t)voidsetUnsignedShort(int index, int us)NativeDatagramPackettoDatagramPacket(InetAddress destinationAddress)
-
-
-
Field Detail
-
CHECKSUM_INDEX
public static final int CHECKSUM_INDEX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ICMPv6Packet
public ICMPv6Packet(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(InetAddress destinationAddress)
-
-