decode_packet
Decode a single network packet from a PCAP file, returning verbose text or JSON layers for in-depth protocol analysis. Optionally include hex and ASCII dump.
Instructions
Decode a single packet in full detail.
Args: filepath: Path to PCAP file packet_number: Packet number to decode (1-based) verbose: If True, return verbose text decode; if False, return JSON layers hex_dump: If True, include hex and ASCII dump of raw packet bytes (-x flag)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filepath | Yes | ||
| packet_number | Yes | ||
| verbose | No | ||
| hex_dump | No |