-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into branch-removal
- Loading branch information
Showing
200 changed files
with
1,025 additions
and
1,942 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# Copyright 2020-2021 Chris Morgan <[email protected]> | ||
# SPDX-License-Identifier: MIT | ||
|
||
environment: | ||
# This key is encrypted using secdev's appveyor private key, | ||
|
@@ -9,40 +11,32 @@ environment: | |
# Disable automatic AppVeyor build logic | ||
build: off | ||
skip_branch_with_pr: true | ||
branches: | ||
only: | ||
- master | ||
|
||
image: | ||
- Visual Studio 2022 | ||
- Ubuntu1804 | ||
- macos | ||
|
||
for: | ||
- | ||
matrix: | ||
only: | ||
- image: Visual Studio 2022 | ||
install: | ||
- ps: .\scripts\install-windows.ps1 | ||
- ps: .\scripts\Install-npcap.ps1 | ||
- ps: .\scripts\install-winpkfilter.ps1 | ||
build_script: | ||
- dotnet build -c Release | ||
test_script: | ||
- bash scripts/test.sh --filter "TestCategory!=RemotePcap&TestCategory!=WinDivert" | ||
- matrix: | ||
only: | ||
- image: Visual Studio 2022 | ||
install: | ||
- ps: .\scripts\install-windows.ps1 | ||
- ps: .\scripts\Install-npcap.ps1 | ||
- ps: .\scripts\install-winpkfilter.ps1 | ||
build_script: | ||
- dotnet build -c Release | ||
test_script: | ||
- bash scripts/test.sh --filter "TestCategory!=RemotePcap&TestCategory!=WinDivert" | ||
|
||
- | ||
matrix: | ||
only: | ||
- image: Ubuntu1804 | ||
install: | ||
- sudo -E bash scripts/install-libpcap.sh | ||
test_script: | ||
- sudo -E bash scripts/test.sh --filter "TestCategory!=Tunneling" | ||
|
||
- | ||
matrix: | ||
only: | ||
- image: macos | ||
install: | ||
- sudo -E bash scripts/install-libpcap.sh | ||
test_script: | ||
- sudo -E bash scripts/test.sh | ||
- matrix: | ||
only: | ||
- image: macos | ||
install: | ||
- brew install --cask dotnet-sdk | ||
- sudo -E bash scripts/install-libpcap.sh | ||
test_script: | ||
- sudo -E bash scripts/test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright 2020-2021 Chris Morgan <[email protected]> | ||
# SPDX-License-Identifier: MIT | ||
|
||
version: 2.1 | ||
|
||
orbs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright 2020 Chris Morgan <[email protected]> | ||
# SPDX-License-Identifier: MIT | ||
|
||
name: .NET Core | ||
|
||
on: | ||
|
@@ -12,9 +15,9 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v3 | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 6.0.x | ||
- name: Install .net dependencies | ||
|
@@ -31,19 +34,19 @@ jobs: | |
- run: sudo chmod -R +r Test/TestResults | ||
if: always() | ||
- name: Publish Test Report | ||
uses: mikepenz/action-junit-report@v3 | ||
uses: mikepenz/action-junit-report@v4 | ||
if: always() | ||
with: | ||
report_paths: Test/TestResults/TestResults.xml | ||
- uses: actions/upload-artifact@v3 | ||
- uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
name: artifacts | ||
path: Test/TestResults/ | ||
|
||
- name: publish on version change | ||
id: publish_nuget | ||
uses: alirezanet/publish-nuget@v3.0.4 | ||
uses: alirezanet/publish-nuget@v3.1.0 | ||
with: | ||
# Filepath of the project to be packaged, relative to root of repository | ||
PROJECT_FILE_PATH: SharpPcap/SharpPcap.csproj | ||
|
@@ -53,3 +56,15 @@ jobs: | |
|
||
# Flag to toggle pushing symbols along with nuget package to the server, disabled by default | ||
INCLUDE_SYMBOLS: true | ||
|
||
license-check: | ||
# We use https://github.com/fsfe/reuse-tool to ensure EVERY file has correct license and copyright info | ||
# Either in the file itself, or in .reuse\dep5 for binary files and files that don't support comments | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
- run: pip install -r requirements.txt | ||
- run: reuse lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | ||
Upstream-Name: sharppcap | ||
Upstream-Contact: Chris Morgan <[email protected]> | ||
Source: https://github.com/dotpcap/sharppcap | ||
|
||
Files: Examples/* | ||
SharpPcap.sln | ||
Test/capture_files/10k_packets.pcap | ||
Test/capture_files/arp_request_response.pcap | ||
Test/capture_files/ipv6_http.pcap | ||
Test/capture_files/ipv6_icmpv6_packet.pcap | ||
Test/capture_files/ip_packet_bogus_length.pcap | ||
Test/capture_files/README | ||
Test/capture_files/tcp.pcap | ||
Test/capture_files/tcp_with_extra_bytes.pcap | ||
Test/capture_files/test_stream.pcap | ||
Test/capture_files/udp_dns_request_response.pcap | ||
Copyright: Tamir Gal <[email protected]> | ||
Chris Morgan <[email protected]> | ||
License: MIT | ||
|
||
Files: Tutorial/* | ||
History.md | ||
README.md | ||
renovate.json | ||
Copyright: Chris Morgan <[email protected]> | ||
License: MIT | ||
|
||
Files: Test/capture_files/arp_with_vlan.pcap | ||
Copyright: Houcem Benali <[email protected]> | ||
License: MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright 2021-2022 Ayoub Kaanich <[email protected]> | ||
# SPDX-License-Identifier: MIT | ||
|
||
version: v1.0 | ||
name: Pipeline | ||
agent: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
<!-- | ||
Copyright 2020-2021 Ayoub Kaanich <[email protected]> | ||
SPDX-License-Identifier: MIT | ||
--> | ||
<Project> | ||
<PropertyGroup> | ||
<Deterministic>true</Deterministic> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
using System; | ||
using SharpPcap; | ||
using SharpPcap.LibPcap; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
using System; | ||
using SharpPcap; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
using System; | ||
using SharpPcap; | ||
using SharpPcap.LibPcap; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
using System; | ||
using SharpPcap; | ||
using SharpPcap.LibPcap; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Examples/Example12.PacketManipulation/Example12.PacketManipulation.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
using System; | ||
using System.Net.NetworkInformation; | ||
using SharpPcap; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
using System; | ||
using SharpPcap; | ||
using SharpPcap.LibPcap; | ||
|
2 changes: 1 addition & 1 deletion
2
Examples/Example4.BasicCapNoCallback/Example04.BasicCapNoCallback.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
Examples/Example4.BasicCapNoCallback/Example4.BasicCapNoCallback.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
using System; | ||
using SharpPcap; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
using System; | ||
using SharpPcap; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
using System; | ||
using SharpPcap; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
using System; | ||
using SharpPcap; | ||
|
||
|
Oops, something went wrong.