From dc267b7d05795fc944247bda8504c6b32bec74c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20De=20Keersmaeker?= <francois.dekeersmaeker@uclouvain.be> Date: Tue, 9 May 2023 10:39:56 +0200 Subject: [PATCH] Updated README --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6a6cf48..437ae8a 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ pip install -r requirements.txt ## Usage ```bash -python3 pcap-tweaker.py [-h] [-d] [-r RANDOM_RANGE] pcap [pcap ...] +python3 pcap-tweaker.py [-h] [-d] [-r RANDOM_RANGE] [-n PACKET_NUMBER] pcap [pcap ...] ``` The program produces new PCAP file with the same name as the input files, @@ -46,6 +46,7 @@ It will be created if it doesn't exist. * `-h`, `--help`: show help message and exit * `-d`, `--dry-run`: don't write the output PCAP file (but still write the CSV log file) * `-r`, `--random-range`: upper bound for the random range, which will select for each packet if it will be edited or not. In practice, each packet will be edited with a probability of `1/(r+1)`. Default: `0` (edit all packets). +* `-n`, `--packet-number`: index of the packet to edit, starting from 1. Can be specified multiple times. If this is used, only the specified packets will be edited, and no random editing will be performed. ## Supported protocols -- GitLab