org.opennms.jicmp.ipv6
Class ICMPv6Packet

java.lang.Object
  extended by org.opennms.jicmp.ipv6.ICMPv6Packet
Direct Known Subclasses:
ICMPv6EchoPacket

public class ICMPv6Packet
extends Object

ICMPPacket

Author:
brozow

Nested Class Summary
static class ICMPv6Packet.Type
           
 
Field Summary
static int CHECKSUM_INDEX
           
 
Constructor Summary
ICMPv6Packet(ByteBuffer ipPayload)
           
ICMPv6Packet(ICMPv6Packet icmpPacket)
           
ICMPv6Packet(int size)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)


Copyright © 2011. All Rights Reserved.