Skip to content

Commit 08ea5b5

Browse files
Merge pull request #16 from Lansweeper/chore/sync-with-original
Chore: sync with original
2 parents 13a09fe + 2253053 commit 08ea5b5

File tree

199 files changed

+1068
-2084
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+1068
-2084
lines changed

.appveyor.yml

Lines changed: 21 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright 2020-2021 Chris Morgan <chmorgan@gmail.com>
2+
# SPDX-License-Identifier: MIT
13

24
environment:
35
# This key is encrypted using secdev's appveyor private key,
@@ -15,37 +17,26 @@ branches:
1517

1618
image:
1719
- Visual Studio 2022
18-
- Ubuntu1804
1920
- macos
2021

2122
for:
22-
-
23-
matrix:
24-
only:
25-
- image: Visual Studio 2022
26-
install:
27-
- ps: .\scripts\install-windows.ps1
28-
- ps: .\scripts\Install-npcap.ps1
29-
- ps: .\scripts\install-winpkfilter.ps1
30-
build_script:
31-
- dotnet build -c Release
32-
test_script:
33-
- bash scripts/test.sh --filter "TestCategory!=RemotePcap&TestCategory!=WinDivert"
23+
- matrix:
24+
only:
25+
- image: Visual Studio 2022
26+
install:
27+
- ps: .\scripts\install-windows.ps1
28+
- ps: .\scripts\Install-npcap.ps1
29+
- ps: .\scripts\install-winpkfilter.ps1
30+
build_script:
31+
- dotnet build -c Release
32+
test_script:
33+
- bash scripts/test.sh --filter "TestCategory!=RemotePcap&TestCategory!=WinDivert"
3434

35-
-
36-
matrix:
37-
only:
38-
- image: Ubuntu1804
39-
install:
40-
- sudo -E bash scripts/install-libpcap.sh
41-
test_script:
42-
- sudo -E bash scripts/test.sh --filter "TestCategory!=Tunneling"
43-
44-
-
45-
matrix:
46-
only:
47-
- image: macos
48-
install:
49-
- sudo -E bash scripts/install-libpcap.sh
50-
test_script:
51-
- sudo -E bash scripts/test.sh
35+
- matrix:
36+
only:
37+
- image: macos
38+
install:
39+
- brew install --cask dotnet-sdk
40+
- sudo -E bash scripts/install-libpcap.sh
41+
test_script:
42+
- sudo -E bash scripts/test.sh

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ executors:
1717
- image: circleci/node:12
1818

1919
orbs:
20-
win: circleci/windows@2.2.0
20+
win: circleci/windows@5.0.0
2121
sonar-check: lansweeper/sonar@0.0.6
2222

2323
commands:
@@ -85,7 +85,7 @@ jobs:
8585
- run:
8686
name: Set correct version in csproj file, build and pack it
8787
command: |
88-
$env:package_version = "9.0.9"
88+
$env:package_version = "10.0.0-alpha"
8989
9090
$file = Get-Item << pipeline.parameters.csproj-file >>
9191
[xml]$cn = Get-Content $file

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2018 Jan Pluskal
2+
# SPDX-License-Identifier: MIT
3+
14
# Auto detect text files and perform LF normalization
25
* text=auto
36

.github/workflows/dotnet-core.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2020 Chris Morgan <chmorgan@gmail.com>
2+
# SPDX-License-Identifier: MIT
3+
14
name: .NET Core
25

36
on:
@@ -13,12 +16,8 @@ jobs:
1316

1417
steps:
1518
- uses: actions/checkout@v4
16-
- name: Setup .NET Core
17-
uses: actions/setup-dotnet@v3
1819
with:
19-
dotnet-version: 6.0.x
20-
- name: Install .net dependencies
21-
run: dotnet restore
20+
fetch-depth: 0
2221
- name: Install libpcap
2322
run: sudo -E bash scripts/install-libpcap.sh
2423
- name: Install tap
@@ -27,15 +26,17 @@ jobs:
2726
run: dotnet build SharpPcap/SharpPcap.csproj
2827
- name: Test
2928
run: sudo -E bash scripts/test.sh
29+
# env:
30+
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3031

3132
- run: sudo chmod -R +r Test/TestResults
3233
if: always()
3334
- name: Publish Test Report
34-
uses: mikepenz/action-junit-report@v4
35+
uses: mikepenz/action-junit-report@v5
3536
if: always()
3637
with:
3738
report_paths: Test/TestResults/TestResults.xml
38-
- uses: actions/upload-artifact@v3
39+
- uses: actions/upload-artifact@v4
3940
if: failure()
4041
with:
4142
name: artifacts
@@ -53,3 +54,15 @@ jobs:
5354

5455
# Flag to toggle pushing symbols along with nuget package to the server, disabled by default
5556
INCLUDE_SYMBOLS: true
57+
58+
# license-check:
59+
# # We use https://github.com/fsfe/reuse-tool to ensure EVERY file has correct license and copyright info
60+
# # Either in the file itself, or in .reuse\dep5 for binary files and files that don't support comments
61+
# runs-on: ubuntu-latest
62+
# steps:
63+
# - uses: actions/checkout@v4
64+
# - uses: actions/setup-python@v5
65+
# with:
66+
# python-version: '3.10'
67+
# - run: pip install -r requirements.txt
68+
# - run: reuse lint

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2018 Jan Pluskal
2+
# SPDX-License-Identifier: MIT
3+
14
# Created by https://www.gitignore.io/api/visualstudio
25

36
### VisualStudio ###
@@ -299,5 +302,5 @@ __pycache__/
299302

300303
# End of https://www.gitignore.io/api/visualstudio
301304

302-
Scripts/htmldocs
303-
Scripts/monodoc_output
305+
Scripts/htmldocs
306+
Scripts/monodoc_output

.semaphore/semaphore.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

Directory.Build.props

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<!--
2+
Copyright 2020-2021 Ayoub Kaanich <kayoub5@live.com>
3+
SPDX-License-Identifier: MIT
4+
-->
15
<Project>
26
<PropertyGroup>
37
<Deterministic>true</Deterministic>

Examples/CreatingCaptureFile/CreatingCaptureFile.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
</PropertyGroup>
66
<ItemGroup>
77
<ProjectReference Include="..\..\SharpPcap\SharpPcap.csproj" />

Examples/CreatingCaptureFile/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT
2+
13
using System;
24
using SharpPcap;
35
using SharpPcap.LibPcap;

Examples/Example1.IfList/Example01.IfList.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
</PropertyGroup>
66
<ItemGroup>
77
<ProjectReference Include="..\..\SharpPcap\SharpPcap.csproj" />

0 commit comments

Comments
 (0)