Skip to content

Commit 47cd680

Browse files
seladbweb-flow
andauthored
Auto precommit update (#1983)
* Auto pre-commit update * Fix typos --------- Co-authored-by: GitHub <[email protected]>
1 parent fdfd6ff commit 47cd680

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repos:
2222
args: ['--fix=lf']
2323
- id: trailing-whitespace
2424
- repo: https://github.com/astral-sh/ruff-pre-commit
25-
rev: v0.12.11
25+
rev: v0.13.2
2626
hooks:
2727
- id: ruff # Run the linter.
2828
types_or: [ python ]
@@ -38,7 +38,7 @@ repos:
3838
- id: cppcheck
3939
args: ["--std=c++14", "--language=c++", "--suppressions-list=cppcheckSuppressions.txt", "--inline-suppr", "--force"]
4040
- repo: https://github.com/BlankSpruce/gersemi
41-
rev: 0.22.1
41+
rev: 0.22.3
4242
hooks:
4343
- id: gersemi
4444
args: ["-c"]
@@ -48,7 +48,7 @@ repos:
4848
- id: codespell
4949
pass_filenames: false
5050
- repo: https://github.com/crate-ci/typos
51-
rev: v1.35.1
51+
rev: v1
5252
hooks:
5353
- id: typos
5454
args: ['--config=typos-config.toml']

Examples/IPFragUtil/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Fragment only IPv6 packets with dest address of 2001:4f8:3:d::61 to 16B fragment
7676
input_file : Input pcap/pcapng file
7777
-s frag_size : Size of each fragment
7878
-o output_file : Output file. Output file type (pcap/pcapng) will match the input file type
79-
-d ip_ids : Fragment only packets that match this comma-separated list of IP IDs in decmial format
79+
-d ip_ids : Fragment only packets that match this comma-separated list of IP IDs in decimal format
8080
-f bpf_filter : Fragment only packets that match bpf_filter. Filter should be provided in Berkeley Packet Filter (BPF)
8181
syntax (http://biot.com/capstats/bpf.html) i.e: 'ip net 1.1.1.1'
8282
-a : Copy all packets (those who were fragmented and those who weren't) to output file

Examples/PcapSplitter/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ int main(int argc, char* argv[])
382382
std::cout << "Started..." << std::endl;
383383

384384
// determine output file extension
385-
std::string outputFileExtenison = (isReaderPcapng ? ".pcapng" : ".pcap");
385+
std::string outputFileExtension = (isReaderPcapng ? ".pcapng" : ".pcap");
386386

387387
int packetCountSoFar = 0;
388388
int numOfFiles = 0;
@@ -407,7 +407,7 @@ int main(int argc, char* argv[])
407407
{
408408
// get file name from the splitter and add the .pcap extension
409409
std::string fileName =
410-
splitter->getFileName(parsedPacket, outputPcapFileName, fileNum) + outputFileExtenison;
410+
splitter->getFileName(parsedPacket, outputPcapFileName, fileNum) + outputFileExtension;
411411

412412
// create a new IFileWriterDevice for this file
413413
if (isReaderPcapng)
@@ -434,7 +434,7 @@ int main(int argc, char* argv[])
434434
{
435435
// get file name from the splitter and add the .pcap extension
436436
std::string fileName =
437-
splitter->getFileName(parsedPacket, outputPcapFileName, fileNum) + outputFileExtenison;
437+
splitter->getFileName(parsedPacket, outputPcapFileName, fileNum) + outputFileExtension;
438438

439439
// re-create the IFileWriterDevice object
440440
if (isReaderPcapng)

0 commit comments

Comments
 (0)