se.sics.jipv6.core
Class Packet
java.lang.Object
se.sics.jipv6.core.Packet
- Direct Known Subclasses:
- IPv6Packet
public class Packet
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LL_SOURCE
public static final String LL_SOURCE
- See Also:
- Constant Field Values
LL_DESTINATION
public static final String LL_DESTINATION
- See Also:
- Constant Field Values
attributes
protected Hashtable attributes
packetData
protected byte[] packetData
Packet
public Packet()
setBytes
public void setBytes(byte[] data)
setBytes
public void setBytes(byte[] data,
int startPos,
int len)
appendBytes
public void appendBytes(byte[] data)
prependBytes
public void prependBytes(byte[] data)
getBytes
public byte[] getBytes()
getTotalLength
public int getTotalLength()
getPayloadLength
public int getPayloadLength()
setAttribute
public void setAttribute(String name,
Object object)
setAttribute
public void setAttribute(String name,
int data)
getAttribute
public Object getAttribute(String name)
getLinkSource
public byte[] getLinkSource()
getLinkDestination
public byte[] getLinkDestination()
get32
public int get32(int pos)
get24
public int get24(int pos)
get16
public int get16(int pos)
getData
public byte getData(int pos)
incPos
public void incPos(int delta)
getPayload
public byte[] getPayload()
getAttributeAsInt
public int getAttributeAsInt(String attr)
copy
public void copy(int pos,
byte[] dst,
int dstPos,
int len)
setData
public void setData(int pos,
byte val)