- Tutorials
- API Examples
- User Guide
- Ch 1 - The Basics
- Ch 2 - libpcap
- 2.1 - The Main libpcap API Overview
- 2.2 - Getting a List of Interfaces
- 2.3 - Opening a Network Interface for Capture
- 2.4 - Opening offline capture
- 2.5 - Setting a packet filter
- 2.6 - Reading one packet at a time
- 2.7 - Reading multiple packets with dispatch loops
- 2.8 - Dumping captured packet to an offline file
- 2.9 - Transmitting packets
- 2.10 - Close Pcap and PcapDumper handles
- Ch 3 - Packet Decoding
- Ch 4 - Internals
- Ch 5 - Protocols
- Ch 6 - Native API
Staring with release jNetPcap version 1.2, we have a powerful packet decoding framework. A new java package org.jnetpcap.packet contains all the necessary classes and sub-packages for protocol definitions, packet API, formatting, and a low level scanner.
The framework is made up of 4 major parts. Each discussed in its own section.
PcapPacketandJPacketclasses - they are the entry point to the entire decoding packet APIJScannerandJRegistryclasses - these classes maintain a database of protocols and allow the packets to be decoded using native functions.org.jnetpcap.protocolpackage - contains all the protocol definitions, grouped by protocol suites or families, written in java. Each protocol is made up of a mandatory header declaration and several optional classes such as analyzers, utility classes, events and protocol specific exceptions.org.jnetpcap.packet.formatpackage - provides formatters that can read in a decoded packet and produce textual output such as, a pretty plain-text dump of a packet or Xml output.
»
Printer-friendly- Login or register to post comments
Send via Email
PDF Convert