=pod =head1 NAME B - Eliminate duplicate packets collected by several sensors =head1 SYNOPSIS rwpdedupe { --first-duplicate | --random-duplicate[=SCALAR] } [--threshold=MILLISECONDS] FILE... > OUTPUT-FILE =head1 DESCRIPTION Detects and eliminates duplicate records from B capture files. Duplicate records are defined as having timestamps within a user-configurable time of each other. In addition, their Ethernet (OSI layer 3) headers must match. If they are not IP packets, then their entire Ethernet payload must match. If they are IP packets, then their source and destination addresses, protocol, and IP payload must match. =head1 OPTIONS Option names may be abbreviated if the abbreviation is unique or is an exact match for an option. A parameter to an option may be specified as B<--arg>=I or B<--arg> I, though the first form is required for options that take optional parameters. =over 4 =item B<--threshold>=I Set the maximum number of milliseconds which may elapse between two packets and still have those packets be detected as duplicates. Default 0 (exact timestamp match). Must be a value between 0 and 1,000,000 milliseconds. =back One and only one of the following switches is required: =over 4 =item B<--first-duplicate> When selecting between multiple duplicate packets, always choose the packet with the earliest timestamp. Not compatible with B<--random-duplicate>. =item B<--random-duplicate> =item B<--random-duplicate>=I Select a random packet from the list of duplicate packets. SCALAR is a random number seed, so that multiple runs can produce identical results. =back =head1 EXAMPLES Given B files F and F, detect and eliminate duplicate packets which occur within one second of each other (when choosing which timestamp to output, pick one randomly.) Store the result file in F. rwpdedupe --threshold=1000 --random-duplicate \ data1.tcp data2.tcp > out.tcp =head1 NOTES B can be used to merge two B capture files without eliminating duplicate packets. =head1 SEE ALSO B, B =cut $SiLK: rwpdedupe.pod 5471 2006-11-01 21:10:02Z mthomas $ Local Variables: mode:text indent-tabs-mode:nil End: