diff options
author | Sake Blok <sake@euronet.nl> | 2008-01-12 18:31:07 +0000 |
---|---|---|
committer | Sake Blok <sake@euronet.nl> | 2008-01-12 18:31:07 +0000 |
commit | da42105f7783b1db70b2f34c20d9817d63d6ca66 (patch) | |
tree | 3c2166bebe58dcf7f8466282b3f397229b9d10dd /editcap.c | |
parent | 6ff98095fe6947c83d822f5bd6e091afd50fe4a0 (diff) |
Clean up the usage information of editcap and change the text
of the -t option to fit its current behaviour
('fixes' bug 2101)
svn path=/trunk/; revision=24072
Diffstat (limited to 'editcap.c')
-rw-r--r-- | editcap.c | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -309,19 +309,21 @@ static void usage(void) fprintf(stderr, "\n"); fprintf(stderr, "A single packet or a range of packets can be selected.\n"); fprintf(stderr, "\n"); - fprintf(stderr, "Packets:\n"); - fprintf(stderr, " -C <choplen> chop each packet at the end by <choplen> bytes\n"); - fprintf(stderr, " -d remove duplicate packets\n"); - fprintf(stderr, " -E <error probability> set the probability (between 0.0 and 1.0 incl.)\n"); - fprintf(stderr, " that a particular packet byte will be randomly changed\n"); + fprintf(stderr, "Packet selection:\n"); fprintf(stderr, " -r keep the selected packets, default is to delete them\n"); - fprintf(stderr, " -s <snaplen> truncate packets to max. <snaplen> bytes of data\n"); - fprintf(stderr, " -t <time adjustment> adjust the timestamp of selected packets,\n"); - fprintf(stderr, " <time adjustment> is in relative seconds (e.g. -0.5)\n"); fprintf(stderr, " -A <start time> don't output packets whose timestamp is before the\n"); fprintf(stderr, " given time (format as YYYY-MM-DD hh:mm:ss)\n"); fprintf(stderr, " -B <stop time> don't output packets whose timestamp is after the\n"); fprintf(stderr, " given time (format as YYYY-MM-DD hh:mm:ss)\n"); + fprintf(stderr, " -d remove duplicate packets\n"); + fprintf(stderr, "\n"); + fprintf(stderr, "Packet manipulation:\n"); + fprintf(stderr, " -s <snaplen> truncate each packet to max. <snaplen> bytes of data\n"); + fprintf(stderr, " -C <choplen> chop each packet at the end by <choplen> bytes\n"); + fprintf(stderr, " -t <time adjustment> adjust the timestamp of each packet,\n"); + fprintf(stderr, " <time adjustment> is in relative seconds (e.g. -0.5)\n"); + fprintf(stderr, " -E <error probability> set the probability (between 0.0 and 1.0 incl.)\n"); + fprintf(stderr, " that a particular packet byte will be randomly changed\n"); fprintf(stderr, "\n"); fprintf(stderr, "Output File(s):\n"); fprintf(stderr, " -c <packets per file> split the packet output to different files,\n"); |