|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--jpcap.Packet
|
+--jpcap.IPPacket
This class represents an IP packet.
Both IPv4 or v6 packet can be handled by this class.
| Field Summary | |
boolean |
d_flag
IP flag bit [D]elay (v4) |
boolean |
dont_frag
Don't fragment flag (v4) |
IPAddress |
dst_ip
Destionation IP address |
int |
flow_label
Flow label (v6) |
short |
hop_limit
Hop limit (Time To Live) (v4/v6) |
short |
ident
IDENTIFICATION (v4) |
short |
length
Length of this packet (v4/v6) |
boolean |
more_frag
More fragment flag (v4) |
short |
offset
Fragment offset (v4) |
java.util.Vector |
options
Option headers (v6) |
byte |
priority
Priority (or class) of this packet (v4/v6) |
short |
protocol
Protocol of higher layer (v4/v6) |
boolean |
r_flag
IP flag bit [R]eliability (v4) |
boolean |
rsv_frag
Reserved fragmentation flag (v4) |
IPAddress |
src_ip
Source IP address |
boolean |
t_flag
IP flag bit [T]hrough (v4) |
byte |
version
IP version (v4/v6) |
| Fields inherited from class jpcap.Packet |
caplen,
data,
datalink,
sec,
usec |
| Constructor Summary | |
IPPacket()
|
|
| Method Summary | |
void |
setIPv4Parameter(int priority,
boolean d_flag,
boolean t_flag,
boolean r_flag,
boolean rsv_frag,
boolean dont_frag,
boolean more_frag,
int offset,
int ident,
int ttl,
int protocol,
IPAddress src,
IPAddress dst)
Sets up the parameters of IPv4 |
void |
setIPv6Parameter(int cls,
int flowlabel,
int nxt_hdr,
int hop_limit,
IPAddress src,
IPAddress dst)
Sets up the parameters of IPv6 |
java.lang.String |
toString()
Converts this object to String IPv4: src_ip->dst_ip protocol(protocol) priority(priority) [D][T][R] hop(hop_limit) [RF/][DF/][MF] offset(offset) ident(ident) IPv6: src_ip->dst_ip protocol(protocol) priority(priority) flowlabel(flow_label) hop(hop_limit) |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public byte version
public byte priority
public boolean d_flag
public boolean t_flag
public boolean r_flag
public short length
public boolean rsv_frag
public boolean dont_frag
public boolean more_frag
public short offset
public short hop_limit
public short protocol
public short ident
public int flow_label
public IPAddress src_ip
public IPAddress dst_ip
public java.util.Vector options
| Constructor Detail |
public IPPacket()
| Method Detail |
public void setIPv4Parameter(int priority,
boolean d_flag,
boolean t_flag,
boolean r_flag,
boolean rsv_frag,
boolean dont_frag,
boolean more_frag,
int offset,
int ident,
int ttl,
int protocol,
IPAddress src,
IPAddress dst)
priority - Priorityd_flag,t_flag,r_flag - Delay, Through, Realiability flagsrsv_frag - Reserved fragment flagdont_frag - Don't fragment flagmore_frag - More fragment flagoffset - Fragment offsetident - Identificationttl - Time To Liveprotocol - Protocol numbersrc - Source IP addressdst - Destionation IP address
public void setIPv6Parameter(int cls,
int flowlabel,
int nxt_hdr,
int hop_limit,
IPAddress src,
IPAddress dst)
class - Classflow_label - Flow labelnxt_hdr - Next headerhop_limit - Hop limitsrc - Source IP addressdst - Destionation IP addresspublic java.lang.String toString()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||