org.opennms.jicmp.ip
Class IPPacket
java.lang.Object
org.opennms.jicmp.ip.IPPacket
public class IPPacket
- extends Object
IPPacket
- Author:
- brozow
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IPPacket
public IPPacket(IPPacket p)
IPPacket
public IPPacket(ByteBuffer buffer)
IPPacket
public IPPacket(byte[] data,
int offset,
int length)
IPPacket
public IPPacket(NativeDatagramPacket datagram)
getVersion
public int getVersion()
- Returns the version of the IP Packet which must be '4'
getHeaderLength
public int getHeaderLength()
- Returns the length of the header in bytes
getTimeToLive
public int getTimeToLive()
getProtocol
public IPPacket.Protocol getProtocol()
getSourceAddress
public InetAddress getSourceAddress()
getDestinationAddress
public InetAddress getDestinationAddress()
getPayload
public ByteBuffer getPayload()
getPayloadLength
public int getPayloadLength()
Copyright © 2011. All Rights Reserved.