public class GenericPacket extends Packet
| Modifier and Type | Method and Description |
|---|---|
int |
cksum(int offset,
int len) |
Packet |
copy() |
static GenericPacket |
get(int hlen,
int dlen) |
int |
getByte(int off) |
byte[] |
getByteArray() |
void |
getBytes(int src_offset,
byte[] dst,
int dst_offset,
int len) |
long |
getEthAddr(int off) |
int |
getInt(int off) |
int |
getShort(int off) |
void |
putByte(int d,
int off) |
void |
putBytes(byte[] src,
int src_offset,
int dst_offset,
int len) |
void |
putBytes(Packet pkt,
int src_offset,
int dst_offset,
int len) |
void |
putEthAddr(long d,
int off) |
void |
putInt(int d,
int off) |
void |
putShort(int d,
int off) |
void |
recycle() |
dataLength, getHeaderOffset, length, setDataLength, setHeaderOffset, setLength, shiftHeaderpublic static GenericPacket get(int hlen, int dlen)
public byte[] getByteArray()
public long getEthAddr(int off)
getEthAddr in class Packetpublic void getBytes(int src_offset,
byte[] dst,
int dst_offset,
int len)
public void putEthAddr(long d,
int off)
putEthAddr in class Packetpublic void putBytes(byte[] src,
int src_offset,
int dst_offset,
int len)
Copyright © 2012 code4tv.com. All Rights Reserved.