Skip to content

Commit d1b4cfc

Browse files
committed
Add GitHub label to _config.yml and change code links to use it
1 parent b78c268 commit d1b4cfc

13 files changed

+34
-34
lines changed

_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ top_navigation_enabled: true
2727
pcapplusplus_ver_num: 21.05
2828
pcapplusplus_ver: v21.05
2929
is_new_release: true
30-
30+
github_label: v21.05
3131
# Google Analytics Tracking Id
3232
ga_tracking: UA-74037205-2
3333

docs/community.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ If you already looked at the code and found the root cause - that's great! You c
5555

5656
### Code contributions
5757

58-
If you'd like to fix bugs or add a new feature to PcapPlusPlus, please make sure to read the [CONTRIBUTING](https://github.com/seladb/PcapPlusPlus/blob/master/CONTRIBUTING.md) document. This document should provide you with all the necessary information on how to create the pull request, what it should include and how the review process works.
58+
If you'd like to fix bugs or add a new feature to PcapPlusPlus, please make sure to read the [CONTRIBUTING](https://github.com/seladb/PcapPlusPlus/blob/{{site.github_label}}/CONTRIBUTING.md) document. This document should provide you with all the necessary information on how to create the pull request, what it should include and how the review process works.

docs/dpdk.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,4 +197,4 @@ If you're curious to learn more, please refer to the following resources:
197197
- [DPDK tutorial]({{ site.baseurl }}/docs/tutorials/dpdk)
198198
- DPDK example applications: [DpdkExample-FilterTraffic]({{ site.baseurl }}/docs/examples#dpdkexample-filtertraffic), [DpdkBridge]({{ site.baseurl }}/docs/examples#dpdkbridge), [KniPong]({{ site.baseurl }}/docs/examples#knipong)
199199
- DPDK API reference. A good starting points would be [`DpdkDevice.h` file description]({{ site.baseurl }}/api-docs/_dpdk_device_8h.html#details) and [`DpdkDevice` class description]({{ site.baseurl }}/api-docs/classpcpp_1_1_dpdk_device.html#details)
200-
- You can also find all the unit-tests in the [`Pcap++Test`](https://github.com/seladb/PcapPlusPlus/blob/master/Tests/Pcap%2B%2BTest/main.cpp) project (search for tests that contain "dpdk" or "kni")
200+
- You can also find all the unit-tests in the [`Pcap++Test`](https://github.com/seladb/PcapPlusPlus/blob/{{site.github_label}}/Tests/Pcap%2B%2BTest/main.cpp) project (search for tests that contain "dpdk" or "kni")

docs/examples.md

+19-19
Original file line numberDiff line numberDiff line change
@@ -16,78 +16,78 @@ PcapPlusPlus contains various example applications that make use of most PcapPlu
1616
1. TOC
1717
{:toc}
1818

19-
## [ArpSpoofing](https://github.com/seladb/PcapPlusPlus/tree/master/Examples/ArpSpoofing)
19+
## [ArpSpoofing](https://github.com/seladb/PcapPlusPlus/tree/{{site.github_label}}/Examples/ArpSpoofing)
2020

2121
an application that does ARP spoofing using Packet++ and Pcap++. You can read more about ARP spoofing [here](https://en.wikipedia.org/wiki/ARP_spoofing).
2222

23-
## [Arping](https://github.com/seladb/PcapPlusPlus/tree/master/Examples/Arping)
23+
## [Arping](https://github.com/seladb/PcapPlusPlus/tree/{{site.github_label}}/Examples/Arping)
2424

2525
an implementation of the [arping](https://en.wikipedia.org/wiki/Arping) utility using PcapPlusPlus.
2626

27-
## [DnsSpoofing](https://github.com/seladb/PcapPlusPlus/tree/master/Examples/DnsSpoofing)
27+
## [DnsSpoofing](https://github.com/seladb/PcapPlusPlus/tree/{{site.github_label}}/Examples/DnsSpoofing)
2828

2929
a command-line utility that does [DNS spoofing](https://en.wikipedia.org/wiki/DNS_spoofing) using Packet++ and Pcap++.
3030

31-
## [DNSResolver](https://github.com/seladb/PcapPlusPlus/tree/master/Examples/DNSResolver)
31+
## [DNSResolver](https://github.com/seladb/PcapPlusPlus/tree/{{site.github_label}}/Examples/DNSResolver)
3232

3333
a command-line utility that resolves IPv4 address for an hostname using ARP and DNS protocols.
3434

35-
## [IcmpFileTransfer](https://github.com/seladb/PcapPlusPlus/tree/master/Examples/IcmpFileTransfer)
35+
## [IcmpFileTransfer](https://github.com/seladb/PcapPlusPlus/tree/{{site.github_label}}/Examples/IcmpFileTransfer)
3636

3737
an application that demonstrates how to transfer files between two machines using only ICMP messages. The basic idea is to use the data part of ICMP messages to transfer chunks of the file between the machines. You can read more about it [here](http://www.unixist.com/security/data-transfer-over-icmp/index.html).
3838

39-
## [HttpAnalyzer](https://github.com/seladb/PcapPlusPlus/tree/master/Examples/HttpAnalyzer)
39+
## [HttpAnalyzer](https://github.com/seladb/PcapPlusPlus/tree/{{site.github_label}}/Examples/HttpAnalyzer)
4040

4141
an application that analyzes HTTP traffic and presents detailed and diverse information about it such as packet count and rate, bandwidth, flow count and rate, HTTP requests and responses count and rate, hostname histogram, content-type histogram, status code histogram and much more. Can operate on live traffic or read packets from a pcap file.
4242

43-
## [SSLAnalyzer](https://github.com/seladb/PcapPlusPlus/tree/master/Examples/SSLAnalyzer)
43+
## [SSLAnalyzer](https://github.com/seladb/PcapPlusPlus/tree/{{site.github_label}}/Examples/SSLAnalyzer)
4444

4545
an application that analyzes SSL/TLS traffic and presents detailed and diverse information about it such as packet count and rate, bandwidth, flow count and rate, SSL/TLS messages count, hostname histogram, SSL/TLS version count, cipher-suite count and much more. Can operate on live traffic or read packets from a pcap file.
4646

47-
## [DpdkExample-FilterTraffic](https://github.com/seladb/PcapPlusPlus/tree/master/Examples/DpdkExample-FilterTraffic)
47+
## [DpdkExample-FilterTraffic](https://github.com/seladb/PcapPlusPlus/tree/{{site.github_label}}/Examples/DpdkExample-FilterTraffic)
4848

4949
an application that demonstrates PcapPlusPlus DPDK APIs. This application listens to one or more DPDK ports (a.k.a DPDK devices), captures all traffic and matches packets by user-defined matching criteria such as source/dest IP, source/dest TCP/UDP port and more. Matched packets can be send to another DPDK port and/or be save to a pcap file. In addition the application collects statistics on received and matched packets.
5050

51-
## [DpdkBridge](https://github.com/seladb/PcapPlusPlus/tree/master/Examples/DpdkBridge)
51+
## [DpdkBridge](https://github.com/seladb/PcapPlusPlus/tree/{{site.github_label}}/Examples/DpdkBridge)
5252

5353
an application that demonstrates how to create a bridge between two network devices (similar to DPDK's L2 forwarding example) using PcapPlusPlus DPDK APIs.
5454

55-
## [KniPong](https://github.com/seladb/PcapPlusPlus/tree/master/Examples/KniPong)
55+
## [KniPong](https://github.com/seladb/PcapPlusPlus/tree/{{site.github_label}}/Examples/KniPong)
5656

5757
an application that demonstrates PcapPlusPlus wrapper for DPDK KNI. It emulates the Unix NETCAT utility run with -u key. It is basically a ping/pong client/server channel using user provided input from stdin.
5858

59-
## [PfRingExample-FilterTraffic](https://github.com/seladb/PcapPlusPlus/tree/master/Examples/PfRingExample-FilterTraffic)
59+
## [PfRingExample-FilterTraffic](https://github.com/seladb/PcapPlusPlus/tree/{{site.github_label}}/Examples/PfRingExample-FilterTraffic)
6060

6161
an application that demonstrates PcapPlusPlus PF_RING APIs. This application listens to a PF_RING interface, captures all traffic and matches packets by user-defined matching criteria such as source/dest IP, source/dest TCP/UDP port and more. Matched packets can be send to another PF_RING interface and/or be save to a pcap file. In addition the application collects statistics on received and matched packets.
6262

63-
## [PcapPrinter](https://github.com/seladb/PcapPlusPlus/tree/master/Examples/PcapPrinter)
63+
## [PcapPrinter](https://github.com/seladb/PcapPlusPlus/tree/{{site.github_label}}/Examples/PcapPrinter)
6464

6565
a simple application that outputs packets from a pcap file as a readable string.
6666

67-
## [PcapSplitter](https://github.com/seladb/PcapPlusPlus/tree/master/Examples/PcapSplitter)
67+
## [PcapSplitter](https://github.com/seladb/PcapPlusPlus/tree/{{site.github_label}}/Examples/PcapSplitter)
6868

6969
an application that splits pcap files into smaller pcap files by various criteria defined by the user like file size, packet count, split per connection, per client-ip, per server-ip, per server-port (protocol) or per IP src + IP dst (2-tuple). This application is very advanced compared to similar tools, for example: there is no limit on input file size or packet count, no technical limit on number of output files (unless the user sets a limit), support for both IPv4 and IPv6, and a lot more.
7070

71-
## [PcapSearch](https://github.com/seladb/PcapPlusPlus/tree/master/Examples/PcapSearch)
71+
## [PcapSearch](https://github.com/seladb/PcapPlusPlus/tree/{{site.github_label}}/Examples/PcapSearch)
7272

7373
an application that search inside pcap files in a directory/ies given by the user and counts how many packet match a user-defined pattern given in a BPF format.
7474

75-
## [TcpReassembly](https://github.com/seladb/PcapPlusPlus/tree/master/Examples/TcpReassembly)
75+
## [TcpReassembly](https://github.com/seladb/PcapPlusPlus/tree/{{site.github_label}}/Examples/TcpReassembly)
7676

7777
an application that captures data transmitted as part of TCP connections, organizes the data and stores it in a way that is convenient for protocol analysis and debugging. This application reconstructs the TCP data streams and stores each connection in a separate file(s). TcpReassembly understands TCP sequence numbers and will correctly reconstruct data streams regardless of retransmissions, out-of-order delivery or data loss.
7878

79-
## [IPFragUtil](https://github.com/seladb/PcapPlusPlus/tree/master/Examples/IPFragUtil)
79+
## [IPFragUtil](https://github.com/seladb/PcapPlusPlus/tree/{{site.github_label}}/Examples/IPFragUtil)
8080

8181
A utility for splitting IP packets into fragments. It works on pcap and pcapng files and allows the user to choose which packets to fragment and to which size. Works on IPv4 and IPv6 packets.
8282

83-
## [IPDefragUtil](https://github.com/seladb/PcapPlusPlus/tree/master/Examples/IPDefragUtil)
83+
## [IPDefragUtil](https://github.com/seladb/PcapPlusPlus/tree/{{site.github_label}}/Examples/IPDefragUtil)
8484

8585
A utility for reassembling IP fragments back to IP packets. It works on pcap and pcapng files and allows the user to choose which fragments to reassemble. Works on IPv4 and IPv6 packets.
8686

87-
## [TLSFingerprinting](https://github.com/seladb/PcapPlusPlus/tree/master/Examples/TLSFingerprinting)
87+
## [TLSFingerprinting](https://github.com/seladb/PcapPlusPlus/tree/{{site.github_label}}/Examples/TLSFingerprinting)
8888

8989
An application the demonstrates how to collect ClientHello (JA3) and ServerHello (JA3S) TLS fingerprints from live traffic or pcap files, write them to an output file and display various statistics.
9090

91-
## [PcapPlusPlus-benchmark](https://github.com/seladb/PcapPlusPlus/tree/master/Examples/PcapPlusPlus-benchmark)
91+
## [PcapPlusPlus-benchmark](https://github.com/seladb/PcapPlusPlus/tree/{{site.github_label}}/Examples/PcapPlusPlus-benchmark)
9292

9393
the benchmark application used for measuring PcapPlusPlus performance. See [benchmark page]({{ site.baseurl }}/docs/benchmark) for more details. This application currently compiles on Linux only (where benchmark was running on).

docs/features.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ printf("ClientHello (JA3) TLS fingerprint: '%s'; MD5: '%s'\n", tlsFingerprintStr
261261

262262
ServerHello TLS fingerprinting (JA3S) is almost similar but for `pcpp::SSLServerHelloMessage` messages.
263263

264-
To learn more please take a look at the [TLS fingerprinting example](https://github.com/seladb/PcapPlusPlus/tree/master/Examples/TLSFingerprinting) in PcapPlusPlus GitHub repo which demonstrates how to collect ClientHello and ServerHello fingerprints from live traffic or pcap files, write them to an output file and display various statistics.
264+
To learn more please take a look at the [TLS fingerprinting example](https://github.com/seladb/PcapPlusPlus/tree/{{site.github_label}}/Examples/TLSFingerprinting) in PcapPlusPlus GitHub repo which demonstrates how to collect ClientHello and ServerHello fingerprints from live traffic or pcap files, write them to an output file and display various statistics.
265265

266266
## Supported network protocols
267267

docs/quickstart/macos.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Another option is to build PcapPlusPlus [from source]({{ site.baseurl }}/docs/in
3636

3737
## Step 2 - create your first app
3838

39-
If you installed PcapPlusPlus using Homebrew go to the [Hello World tutorial on GitHub](https://github.com/seladb/PcapPlusPlus/tree/master/Examples/Tutorials/Tutorial-HelloWorld) and get the files in that directory.
39+
If you installed PcapPlusPlus using Homebrew go to the [Hello World tutorial on GitHub](https://github.com/seladb/PcapPlusPlus/tree/{{site.github_label}}/Examples/Tutorials/Tutorial-HelloWorld) and get the files in that directory.
4040

4141
If you downloaded a pre-compiled package go to: `/path/to/your/package/example-app`.
4242

docs/tests.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ After a successful build you can run these test-cases by following these simple
8282
Test cases: 92, Passed: 91, Failed: 1, Skipped: 0
8383
```
8484

85-
- Please note that it's very important to run the tests from the `Tests/Packet++Test` directory (using `Bin/Packet++Test`) because the test-cases are using packet examples that reside in [Tests/Packet++Test/PacketExamples](https://github.com/seladb/PcapPlusPlus/tree/master/Tests/Packet%2B%2BTest/PacketExamples) and are assuming the running directory is `Tests/Packet++Test`
85+
- Please note that it's very important to run the tests from the `Tests/Packet++Test` directory (using `Bin/Packet++Test`) because the test-cases are using packet examples that reside in [Tests/Packet++Test/PacketExamples](https://github.com/seladb/PcapPlusPlus/tree/{{site.github_label}}/Tests/Packet%2B%2BTest/PacketExamples) and are assuming the running directory is `Tests/Packet++Test`
8686

8787

8888
### Some more technical details
@@ -275,7 +275,7 @@ After a successful build you can run these test-cases by following these simple
275275
..
276276
```
277277

278-
- Please note that it's very important to run the tests from the `Tests/Pcap++Test` directory (using `Bin/Pcap++Test`) because the test-cases are using packet examples that reside in [Tests/Pcap++Test/PcapExamples](https://github.com/seladb/PcapPlusPlus/tree/master/Tests/Pcap%2B%2BTest/PcapExamples) and are assuming the running directory is `Tests/Pcap++Test`
278+
- Please note that it's very important to run the tests from the `Tests/Pcap++Test` directory (using `Bin/Pcap++Test`) because the test-cases are using packet examples that reside in [Tests/Pcap++Test/PcapExamples](https://github.com/seladb/PcapPlusPlus/tree/{{site.github_label}}/Tests/Pcap%2B%2BTest/PcapExamples) and are assuming the running directory is `Tests/Pcap++Test`
279279

280280
- If you're building PcapPlusPlus with DPDK there is an additional mandatory command-line parameter which is "`-k`" or "`--dpdk-port`" where you need to provide the DPDK port to use for the tests. This port is simply a number starting from 0, so if you have only one interface assigned to DPDK the port number will be 0. If you have two interfaces assigned to DPDK then you can choose either 0 or 1, and so on. Please make sure there is network traffic flowing to this interface
281281

@@ -366,7 +366,7 @@ Because this project is written in Python it has different requirements and setu
366366
### Requirements
367367

368368
- This project requires [Python 3.7](https://www.python.org/downloads/) or newer. It won't run on Python 2.7.x
369-
- It has dependencies on other Python libraries described in [`requirements.txt`](https://github.com/seladb/PcapPlusPlus/blob/master/Tests/ExamplesTest/requirements.txt). In the next section we'll go into the details of how to install them
369+
- It has dependencies on other Python libraries described in [`requirements.txt`](https://github.com/seladb/PcapPlusPlus/blob/{{site.github_label}}/Tests/ExamplesTest/requirements.txt). In the next section we'll go into the details of how to install them
370370

371371
### Setup
372372

@@ -395,7 +395,7 @@ This section describes the steps to get to a working setup:
395395
seladb@seladb:~/PcapPlusPlus/Tests/ExamplesTest$ source venv/bin/activate
396396
(venv) seladbseladb:~/PcapPlusPlus/Tests/ExamplesTest$
397397
```
398-
- Install the dependencies described in [`requirements.txt`](https://github.com/seladb/PcapPlusPlus/blob/master/Tests/ExamplesTest/requirements.txt):
398+
- Install the dependencies described in [`requirements.txt`](https://github.com/seladb/PcapPlusPlus/blob/{{site.github_label}}/Tests/ExamplesTest/requirements.txt):
399399

400400
```shell
401401
(venv) seladb@seladb:~/PcapPlusPlus/Tests/ExamplesTest$ python3 -m pip install -r requirements.txt

docs/tutorials/capture-packets.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ As you can see the filter worked as there are no UDP, SSL or DNS packets, althou
492492

493493
## Running the example
494494

495-
All code that was covered in this tutorial can be found [here](https://github.com/seladb/PcapPlusPlus/tree/master/Examples/Tutorials/Tutorial-LiveTraffic). In order to compile and run the code please first download and compile PcapPlusPlus code or downloaded a pre-compiled version from the [{{ site.pcapplusplus_ver }} release](https://github.com/seladb/PcapPlusPlus/releases/tag/v21.05). Then follow these instruction, according to your platform:
495+
All code that was covered in this tutorial can be found [here](https://github.com/seladb/PcapPlusPlus/tree/{{site.github_label}}/Examples/Tutorials/Tutorial-LiveTraffic). In order to compile and run the code please first download and compile PcapPlusPlus code or downloaded a pre-compiled version from the [{{ site.pcapplusplus_ver }} release](https://github.com/seladb/PcapPlusPlus/releases/tag/v21.05). Then follow these instruction, according to your platform:
496496

497497
* Linux, MacOS, FreeBSD - make sure PcapPlusPlus is installed (by running **sudo make install** in PcapPlusPlus main directory). Then either change the `Makefile.non_windows` file name to `Makefile` and run `make all`, or run `make -f Makefile.non_windows all`
498498
* Windows using MinGW or MinGW-w64 - either change the `Makefile.windows` file name to `Makefile` and run `make all`, or run `make -f Makefile.windows all`

docs/tutorials/dpdk.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ This output is printed every 2 seconds and shows for each direction: the total n
402402

403403
## Running the example
404404

405-
All the code that was covered in this tutorial can be found [here](https://github.com/seladb/PcapPlusPlus/tree/master/Examples/Tutorials/Tutorial-DpdkL2Fwd). In order to compile and run the code please first download and compile PcapPlusPlus source code or download a pre-compiled version from the [{{ site.pcapplusplus_ver }} release](https://github.com/seladb/PcapPlusPlus/releases/tag/v21.05). When building from source please make sure to configure the build for DPDK, as explained [here]({{ site.baseurl }}/docs/install/build-source/linux#command-line-switches-mode). The only platform relevant for this tutorial is Linux as DPDK is not supported on other platforms.
405+
All the code that was covered in this tutorial can be found [here](https://github.com/seladb/PcapPlusPlus/tree/{{site.github_label}}/Examples/Tutorials/Tutorial-DpdkL2Fwd). In order to compile and run the code please first download and compile PcapPlusPlus source code or download a pre-compiled version from the [{{ site.pcapplusplus_ver }} release](https://github.com/seladb/PcapPlusPlus/releases/tag/v21.05). When building from source please make sure to configure the build for DPDK, as explained [here]({{ site.baseurl }}/docs/install/build-source/linux#command-line-switches-mode). The only platform relevant for this tutorial is Linux as DPDK is not supported on other platforms.
406406

407407
After done building PcapPlusPlus and the tutorial and before running the tutorial please run `setup-dpdk.sh` script to setup the necessary runtime parameters for DPDK. More details on this script can be found [here]({{ site.baseurl }}/docs/dpdk).
408408

0 commit comments

Comments
 (0)