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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CHECKSUM_INDEX
public static final int CHECKSUM_INDEX
- See Also:
- Constant Field Values
ICMPv6Packet
public ICMPv6Packet(ByteBuffer ipPayload)
ICMPv6Packet
public ICMPv6Packet(ICMPv6Packet icmpPacket)
ICMPv6Packet
public ICMPv6Packet(int size)
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.