A C D E F G H I J L M N O P R S T U V W

A

ack - Variable in class jpcap.TCPPacket
ACK flag
ack_num - Variable in class jpcap.TCPPacket
ACK number
addr_entry_size - Variable in class jpcap.ICMPPacket
Address entry size
addr_num - Variable in class jpcap.ICMPPacket
The number of advertised addresses
addrs - Variable in class jpcap.IPv6Option
Route addresses (Routing option)
AH_OPTION - Static variable in class jpcap.IPv6Option
Authentication option
alive_time - Variable in class jpcap.ICMPPacket
Address alive time
ARP_REPLY - Static variable in class jpcap.ARPPacket
ARP reply
ARP_REQUEST - Static variable in class jpcap.ARPPacket
ARP request
ARPPacket - class jpcap.ARPPacket.
This class represents ARP/RARP packet.
ARPPacket() - Constructor for class jpcap.ARPPacket
 

C

caplen - Variable in class jpcap.Packet
Captured length
checksum - Variable in class jpcap.ICMPPacket
Checksum
close() - Method in class jpcap.JpcapSender
Closes the interface.
close() - Method in class jpcap.Jpcap
Closes the opened interface of dump file.
closeDumpFile() - Method in class jpcap.JpcapWriter
Closes the opened file.
code - Variable in class jpcap.ICMPPacket
ICMP code

D

d_flag - Variable in class jpcap.IPPacket
IP flag bit: [D]elay (v4)
data - Variable in class jpcap.Packet
Packet data (excluding the header)
datalink - Variable in class jpcap.Packet
Datalink layer header
DatalinkPacket - class jpcap.DatalinkPacket.
This class represents datalink layer packet.
DatalinkPacket() - Constructor for class jpcap.DatalinkPacket
 
DESTINATION_OPTION - Static variable in class jpcap.IPv6Option
Destination option
dont_frag - Variable in class jpcap.IPPacket
Don't fragment flag (v4)
dropped_packets - Variable in class jpcap.Jpcap
Number of dropped packets
dst_ip - Variable in class jpcap.IPPacket
Destination IP address
dst_mac - Variable in class jpcap.EthernetPacket
Destination MAC address (6byte)
dst_port - Variable in class jpcap.UDPPacket
Destination port number
dst_port - Variable in class jpcap.TCPPacket
Destination port number

E

equals(Object) - Method in class jpcap.IPAddress
Indicates whether some other object is "equal to" this one.
ESP_OPTION - Static variable in class jpcap.IPv6Option
Security payload option
EthernetPacket - class jpcap.EthernetPacket.
This class represents Ethernet packet.
EthernetPacket() - Constructor for class jpcap.EthernetPacket
 

F

fin - Variable in class jpcap.TCPPacket
FIN flag
flow_label - Variable in class jpcap.IPPacket
Flow label (v6)
FRAGMENT_OPTION - Static variable in class jpcap.IPv6Option
Fragment option
frametype - Variable in class jpcap.EthernetPacket
Frame type

G

getAddress() - Method in class jpcap.IPAddress
Returns this IP address as a byte array
getDestinationAddress() - Method in class jpcap.EthernetPacket
Returns the MAC address of the destination.
getDeviceDescription() - Static method in class jpcap.Jpcap
Returns the descriptions of the interfaces (For Windows only)
getDeviceList() - Static method in class jpcap.Jpcap
Returns the names of the interfaces that can be used for capturing.
getErrorMessage() - Method in class jpcap.Jpcap
Returns an error message
getHostAddress() - Method in class jpcap.IPAddress
Returns this IP address as a string.
getHostName() - Method in class jpcap.IPAddress
Returns the domain name of this address.
getInetAddress() - Method in class jpcap.IPAddress
Returns an instance of java.net.InetAddress.
getPacket() - Method in class jpcap.Jpcap
Returns a captured packet.
getSenderHardwareAddress() - Method in class jpcap.ARPPacket
Returns the hardware address (MAC address) of the sender.
getSenderProtocolAddress() - Method in class jpcap.ARPPacket
Returns the protocol address of the sender.
getSourceAddress() - Method in class jpcap.EthernetPacket
Returns the MAC address of the source.
getTargetHardwareAddress() - Method in class jpcap.ARPPacket
Returns the hardware address (MAC address) of the target.
getTargetProtocolAddress() - Method in class jpcap.ARPPacket
Returns the protocol address of the target.

H

handlePacket(Packet) - Method in interface jpcap.JpcapHandler
Analyzes a packet.

This method is called everytime a packet is captured.
hardtype - Variable in class jpcap.ARPPacket
Hardware type
HARDTYPE_ETHER - Static variable in class jpcap.ARPPacket
Hardware type: Ethernet
HARDTYPE_FRAMERELAY - Static variable in class jpcap.ARPPacket
Hardware type: Frame relay
HARDTYPE_IEEE802 - Static variable in class jpcap.ARPPacket
Hardware type: Token ring
hashCode() - Method in class jpcap.IPAddress
Returns the hash code of this address.
header - Variable in class jpcap.Packet
Header data
hlen - Variable in class jpcap.IPv6Option
Header length
hlen - Variable in class jpcap.ARPPacket
Hardware address length
HOP_BY_HOP_OPTION - Static variable in class jpcap.IPv6Option
Hop by hop option
hop_left - Variable in class jpcap.IPv6Option
Hop number left (Routing option)
hop_limit - Variable in class jpcap.IPPacket
Hop Limit, Time To Live (TTL) (v4/v6)

I

ICMP_ECHO - Static variable in class jpcap.ICMPPacket
echo request
ICMP_ECHOREPLY - Static variable in class jpcap.ICMPPacket
echo reply
ICMP_IREQ - Static variable in class jpcap.ICMPPacket
information request
ICMP_IREQREPLY - Static variable in class jpcap.ICMPPacket
information reply
ICMP_MASKREPLY - Static variable in class jpcap.ICMPPacket
address mask reply
ICMP_MASKREQ - Static variable in class jpcap.ICMPPacket
address mask request
ICMP_PARAMPROB - Static variable in class jpcap.ICMPPacket
ip header bad
ICMP_PARAMPROB_ERRATPTR - Static variable in class jpcap.ICMPPacket
ip header bad code: error at param ptr
ICMP_PARAMPROB_LENGTH - Static variable in class jpcap.ICMPPacket
ip header bad code: bad length
ICMP_PARAMPROB_OPTABSENT - Static variable in class jpcap.ICMPPacket
ip header bad code: req.
ICMP_REDIRECT - Static variable in class jpcap.ICMPPacket
redirect
ICMP_REDIRECT_HOST - Static variable in class jpcap.ICMPPacket
redirect code: for host
ICMP_REDIRECT_NET - Static variable in class jpcap.ICMPPacket
redirect code: for network
ICMP_REDIRECT_TOSHOST - Static variable in class jpcap.ICMPPacket
redirect code: for tos and host
ICMP_REDIRECT_TOSNET - Static variable in class jpcap.ICMPPacket
redirect code: for tos and net
ICMP_ROUTERADVERT - Static variable in class jpcap.ICMPPacket
router advertisement
ICMP_ROUTERSOLICIT - Static variable in class jpcap.ICMPPacket
router solicitation
ICMP_SOURCEQUENCH - Static variable in class jpcap.ICMPPacket
packet lost, slow down
ICMP_TIMXCEED - Static variable in class jpcap.ICMPPacket
time exceeded
ICMP_TIMXCEED_INTRANS - Static variable in class jpcap.ICMPPacket
time exceeded code: ttl==0 in transit
ICMP_TIMXCEED_REASS - Static variable in class jpcap.ICMPPacket
time exceeded code: ttl==0 in reass
ICMP_TSTAMP - Static variable in class jpcap.ICMPPacket
timestamp request
ICMP_TSTAMPREPLY - Static variable in class jpcap.ICMPPacket
timestamp reply
ICMP_UNREACH - Static variable in class jpcap.ICMPPacket
dest unreachable
ICMP_UNREACH_FILTER_PROHIB - Static variable in class jpcap.ICMPPacket
dest unreachable code: admin prohib
ICMP_UNREACH_HOST - Static variable in class jpcap.ICMPPacket
dest unreachable code: bad host
ICMP_UNREACH_HOST_PRECEDENCE - Static variable in class jpcap.ICMPPacket
dest unreachable code: host prec vio.
ICMP_UNREACH_HOST_PROHIB - Static variable in class jpcap.ICMPPacket
dest unreachable code: ditto
ICMP_UNREACH_HOST_UNKNOWN - Static variable in class jpcap.ICMPPacket
dest unreachable code: unknown host
ICMP_UNREACH_ISOLATED - Static variable in class jpcap.ICMPPacket
dest unreachable code: src host isolated
ICMP_UNREACH_NEEDFRAG - Static variable in class jpcap.ICMPPacket
dest unreachable code: IP_DF caused drop
ICMP_UNREACH_NET - Static variable in class jpcap.ICMPPacket
dest unreachable code: bad net
ICMP_UNREACH_NET_PROHIB - Static variable in class jpcap.ICMPPacket
dest unreachable code: prohibited access
ICMP_UNREACH_NET_UNKNOWN - Static variable in class jpcap.ICMPPacket
dest unreachable code: unknown net
ICMP_UNREACH_PORT - Static variable in class jpcap.ICMPPacket
dest unreachable code: bad port
ICMP_UNREACH_PRECEDENCE_CUTOFF - Static variable in class jpcap.ICMPPacket
dest unreachable code: prec cutoff
ICMP_UNREACH_PROTOCOL - Static variable in class jpcap.ICMPPacket
dest unreachable code: bad protocol
ICMP_UNREACH_SRCFAIL - Static variable in class jpcap.ICMPPacket
dest unreachable code: src route failed
ICMP_UNREACH_TOSHOST - Static variable in class jpcap.ICMPPacket
dest unreachable code: bad tos for host
ICMP_UNREACH_TOSNET - Static variable in class jpcap.ICMPPacket
dest unreachable code: bad tos for net
ICMPPacket - class jpcap.ICMPPacket.
This class represents ICMP packet.
ICMPPacket() - Constructor for class jpcap.ICMPPacket
 
id - Variable in class jpcap.ICMPPacket
ID
ident - Variable in class jpcap.IPPacket
IDENTIFICATION (v4)
identification - Variable in class jpcap.IPv6Option
Identification (fragment option)
INV_REPLY - Static variable in class jpcap.ARPPacket
Identify peer response
INV_REQUEST - Static variable in class jpcap.ARPPacket
Identify peer request
IPAddress - class jpcap.IPAddress.
This class represents an IP address.
IPAddress(byte[]) - Constructor for class jpcap.IPAddress
Creates an IPv4 address represented by the byte array.
This method does not check whether the address is valid or not.
IPAddress(int, byte[]) - Constructor for class jpcap.IPAddress
Creates an IP address represented by the byte array in the specified version.
This method does not check whether the address is valid or not.
IPAddress(int, String) - Constructor for class jpcap.IPAddress
Creates an IP address of the specified IP address or domain name in the specified version.
IPAddress(String) - Constructor for class jpcap.IPAddress
Creates an IPv4 address of the specified IP address or domain name.
ippacket - Variable in class jpcap.ICMPPacket
Returned IP packet
IPPacket - class jpcap.IPPacket.
This class represents an IP packet.
IPPacket() - Constructor for class jpcap.IPPacket
 
IPv6Option - class jpcap.IPv6Option.
This class represents IPv6 option headers.
IPv6Option() - Constructor for class jpcap.IPv6Option
 

J

jpcap - package jpcap
 
Jpcap - class jpcap.Jpcap.
This class is used to capture packets.
JpcapHandler - interface jpcap.JpcapHandler.
This interface is used to define a method to analyze the captured packets, which is used in Jpcap.handlePacket() or Jpcap.processPacket()
JpcapSender - class jpcap.JpcapSender.
This class is used to send a packet.
JpcapWriter - class jpcap.JpcapWriter.
This class is used to save the captured packets into a file.
JpcapWriter(Jpcap, String) - Constructor for class jpcap.JpcapWriter
Opens a file to save the captured packets.

L

len - Variable in class jpcap.Packet
Length of this packet
length - Variable in class jpcap.UDPPacket
packet length
length - Variable in class jpcap.IPPacket
Packet length (v4/v6)
lookupDevice() - Static method in class jpcap.Jpcap
Returns the names of the interfaces that can be used for capturing.
loopPacket(int, JpcapHandler) - Method in class jpcap.Jpcap
Captures the specified number of packets consecutively.

M

m_flag - Variable in class jpcap.IPv6Option
More flag (fragment option)
more_frag - Variable in class jpcap.IPPacket
More fragment flag (v4)
mtu - Variable in class jpcap.ICMPPacket
MTU

N

next_header - Variable in class jpcap.IPv6Option
Next header
NONE_OPTION - Static variable in class jpcap.IPv6Option
No next option header

O

offset - Variable in class jpcap.IPv6Option
Offset (Fragment option)
offset - Variable in class jpcap.IPPacket
Fragment offset (v4)
openDevice(String) - Static method in class jpcap.JpcapSender
Initializes a network interface for sending a packet, and returns an instance of this class.
openDevice(String, int, boolean, int) - Static method in class jpcap.Jpcap
Initializes the network interface, and returns an instance of this class.
openFile(String) - Static method in class jpcap.Jpcap
Opens a dump file created by tcpdump or Ethereal, and returns an instance of this class.
operation - Variable in class jpcap.ARPPacket
Operation
option - Variable in class jpcap.TCPPacket
TCP option
option - Variable in class jpcap.IPv6Option
Option
option - Variable in class jpcap.IPPacket
Option in IPv4 header (v4)
options - Variable in class jpcap.IPPacket
Option headers in IPv6Option (v6)
orig_timestamp - Variable in class jpcap.ICMPPacket
Originate timestamp

P

Packet - class jpcap.Packet.
This is a root class of the all the packets captured by Jpcap.
Packet() - Constructor for class jpcap.Packet
 
plen - Variable in class jpcap.ARPPacket
Protocol address length
preference - Variable in class jpcap.ICMPPacket
Preference
priority - Variable in class jpcap.IPPacket
Priority (class) (v4/v6)
processPacket(int, JpcapHandler) - Method in class jpcap.Jpcap
Captures the specified number of packets consecutively.
protocol - Variable in class jpcap.IPPacket
Protocol (v4/v6)
prototype - Variable in class jpcap.ARPPacket
Protocol type
PROTOTYPE_IP - Static variable in class jpcap.ARPPacket
Protocol type: IP
psh - Variable in class jpcap.TCPPacket
PSH flag

R

r_flag - Variable in class jpcap.IPPacket
IP flag bit: [R]eliability (v4)
RARP_REPLY - Static variable in class jpcap.ARPPacket
Reverse ARP reply
RARP_REQUEST - Static variable in class jpcap.ARPPacket
Reverse ARP request
received_packets - Variable in class jpcap.Jpcap
Number of received packets
recv_timestamp - Variable in class jpcap.ICMPPacket
Receive timestamp
redir_ip - Variable in class jpcap.ICMPPacket
Redirect address
router_ip - Variable in class jpcap.ICMPPacket
Advertised addresses
ROUTING_OPTION - Static variable in class jpcap.IPv6Option
Routing option
routing_type - Variable in class jpcap.IPv6Option
Routing type (Routing option)
rst - Variable in class jpcap.TCPPacket
RST flag
rsv_frag - Variable in class jpcap.IPPacket
Fragmentation reservation flag (v4)
rsv_tos - Variable in class jpcap.IPPacket
Type of Service (TOS) (v4/v6)
rsv1 - Variable in class jpcap.TCPPacket
RSV1 flag
rsv2 - Variable in class jpcap.TCPPacket
RSV2 flag

S

sec - Variable in class jpcap.Packet
Captured timestamp (sec)
sender_hardaddr - Variable in class jpcap.ARPPacket
Sender hardware address
sender_protoaddr - Variable in class jpcap.ARPPacket
Sender protocol address
sendPacket(IPPacket) - Method in class jpcap.JpcapSender
Sends a packet.
seq - Variable in class jpcap.ICMPPacket
Sequence number
sequence - Variable in class jpcap.TCPPacket
Sequence number
sequence - Variable in class jpcap.IPv6Option
Sequence number (AH option)
setAddressConvert(boolean) - Static method in class jpcap.IPAddress
Specifies which representation (domain name or IP address ("%d.%d.%d.%d" or "%x:%x::%x:%x")) is used in toString().
setFilter(String, boolean) - Method in class jpcap.Jpcap
Sets a filter.
setIPv4Parameter(int, boolean, boolean, boolean, int, boolean, boolean, boolean, int, int, int, int, IPAddress, IPAddress) - Method in class jpcap.IPPacket
Sets the IPv4 parameters
setIPv6Parameter(int, int, int, int, IPAddress, IPAddress) - Method in class jpcap.IPPacket
Sets the IPv6 parameters
spi - Variable in class jpcap.IPv6Option
SPI (AH option)
src_ip - Variable in class jpcap.IPPacket
Source IP address
src_mac - Variable in class jpcap.EthernetPacket
Source MAC address (6byte)
src_port - Variable in class jpcap.UDPPacket
Source port number
src_port - Variable in class jpcap.TCPPacket
Source port number
subnetmask - Variable in class jpcap.ICMPPacket
Subnet mask
syn - Variable in class jpcap.TCPPacket
SYN flag

T

t_flag - Variable in class jpcap.IPPacket
IP flag bit: [T]hrough (v4)
target_hardaddr - Variable in class jpcap.ARPPacket
Target hardware address
target_protoaddr - Variable in class jpcap.ARPPacket
Target protocol address
TCPPacket - class jpcap.TCPPacket.
This class represents TCP packet.
TCPPacket(int, int, long, long, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, int, int) - Constructor for class jpcap.TCPPacket
Creates a TCP packet.
toString() - Method in class jpcap.UDPPacket
Returns a string representation of this packet.

Format: src_port > dst_port
toString() - Method in class jpcap.TCPPacket
Returns a string representation of this packet

Format: src_port > dst_port seq(sequence) win(window) [ack ack_num] [S][F][P]
toString() - Method in class jpcap.Packet
Returns a string representation of this packet
Format: sec:usec
toString() - Method in class jpcap.IPPacket
Returns a string represenation of this packet.
toString() - Method in class jpcap.IPAddress
Returns a string representation (either as a domain name as an IP address) of this IP address.
toString() - Method in class jpcap.ICMPPacket
Returns a string representation of this ICMP packet.

FormatFtype(type) code(code)
toString() - Method in class jpcap.EthernetPacket
Returns a string representation of this Ethernet packet.

FormatFsrc_mac -> dst_mac (frametype)
toString() - Method in class jpcap.ARPPacket
Returns a string representation of this ARP/RARP packet.

Format: ARP(hardtype:prototype)
trans_timestamp - Variable in class jpcap.ICMPPacket
Transmit timestamp
type - Variable in class jpcap.IPv6Option
Type
type - Variable in class jpcap.ICMPPacket
ICMP type

U

UDPPacket - class jpcap.UDPPacket.
This class represents UDP packet.
UDPPacket(int, int) - Constructor for class jpcap.UDPPacket
Creates a UDP packet.
updateStat() - Method in class jpcap.Jpcap
Updates received_packets and dropped_packets.
urg - Variable in class jpcap.TCPPacket
URG flag
urgent_pointer - Variable in class jpcap.TCPPacket
Urgent pointer
usec - Variable in class jpcap.Packet
Captured timestamp (micro sec)

V

version - Variable in class jpcap.IPPacket
IP version (v4/v6)

W

window - Variable in class jpcap.TCPPacket
Window size
writeDumpFile(Packet) - Method in class jpcap.JpcapWriter
Saves a packet into the file.

A C D E F G H I J L M N O P R S T U V W