Home

Awesome

tcpsplit

Based on the original version by Mark Allman

tcpsplit v0.3 August 2016

Mark Allman International Computer Science Institute mallman@icir.org

This utility takes a libpcap packet trace and splits it into some number of smaller traces, along TCP connection boundaries. This allows the breaking apart of large traces into smaller and more manageable subsets without ending up with part of a TCP connection in one sub-trace and part in another.

Basic usage:

usage: tcpsplit [options] readfile writespec num_files the "writespec" must contain a %d, indicating where to insert the file number options: --24 use /24 of IP address in classification -d classify deterministically -h usage instructions --notcp only use IP addresses in classification --version version information

Examples:

% tcpsplit bigtrace smalltrace.%d 5

This creates 5 sub-traces called "smalltrace.1", "smalltrace.2",
etc. from "bigtrace".

In addition, the tool always creates a "weird" file (in this case it would be "smalltrace.weird"). This file contains any packets that could not successfully be classified and put into another of the files. Normally, this file contains no packets.

Default behavior:

Options:

Building:

Please let me know if you have tweaks or comments.

Acknowledgments

Robert Bullen - added code to grok VLAN headers Rick Jones - tweaks for compiling under HP-UX 11.11 Jim Wyllie - signedness bug fixes