Skip to content

Commit

Permalink
ipsumdump, ipaggcreate, ipaggmanip: add page (tldr-pages#6966)
Browse files Browse the repository at this point in the history
  • Loading branch information
gutjuri committed Oct 20, 2021
1 parent 356e95c commit e26d7c6
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pages/common/ipaggcreate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# ipaggcreate

> Produce aggregate statistics of TCP/IP dumps.
> More information: <https://manned.org/ipaggcreate>.
- Count the number of packets sent from each source address appearing in a pcap file:

`ipaggcreate --src {{path/to/file.pcap}}`

- Group and count packets read from a network interface by IP packet length:

`ipaggcreate --interface {{eth0}} --length`

- Count the number of bytes sent between each address pair appearing in a pcap file:

`ipaggcreate --address-pairs --bytes {{path/to/file.pcap}}`
16 changes: 16 additions & 0 deletions pages/common/ipaggmanip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# ipaggmanip

> Manipulate aggregate statistics produced by `ipaggcreate`.
> More information: <https://manned.org/ipaggmanip>.
- Combine labels equal in their high-order bits:

`ipaggmanip --prefix {{16}} {{path/to/file}}`

- Remove labels with a count smaller than a given number of bytes and output a random sample of such labels:

`ipaggmanip --cut-smaller {{100}} --cull-labels {{5}} {{path/to/file}}`

- Replace each label's count with 1 if it is non-zero:

`ipaggmanip --posterize {{path/to/file}}`
16 changes: 16 additions & 0 deletions pages/common/ipsumdump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# ipsumdump

> Summarise TCP/IP dumps into a human and machine readable ASCII format.
> More information: <https://manned.org/ipsumdump>.
- Print the source and destination IP addresses of all packets in a pcap file:

`ipsumdump --src --dst {{path/to/file.pcap}}`

- Print the timestamps, source address, source port, destination address, destination port and protocol of all packets read from a given network interface:

`ipsumdump --interface {{eth0}} -tsSdDp`

- Print the anonymised source address, anonymised destination address, and IP packet length of all packets in a pcap file:

`ipsumdump --src --dst --length --anonymize {{path/to/file.pcap}}`

0 comments on commit e26d7c6

Please sign in to comment.