Skip to content

Commit e7c4eb8

Browse files
authored
Change license to MIT (#494)
1 parent f7022f0 commit e7c4eb8

File tree

178 files changed

+716
-1372
lines changed

Some content is hidden

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

178 files changed

+716
-1372
lines changed

.appveyor.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2020-2021 Chris Morgan <[email protected]>
2+
# SPDX-License-Identifier: MIT
3+
14
environment:
25
# This key is encrypted using secdev's appveyor private key,
36
# dissected only on master builds (not PRs) and is used during

.circleci/config.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2020-2021 Chris Morgan <[email protected]>
2+
# SPDX-License-Identifier: MIT
3+
14
version: 2.1
25

36
orbs:

.gitattributes

+3
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

+15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2020 Chris Morgan <[email protected]>
2+
# SPDX-License-Identifier: MIT
3+
14
name: .NET Core
25

36
on:
@@ -53,3 +56,15 @@ jobs:
5356

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

.gitignore

+5-2
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

.reuse/dep5

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Upstream-Name: sharppcap
3+
Upstream-Contact: Chris Morgan <[email protected]>
4+
Source: https://github.com/dotpcap/sharppcap
5+
6+
Files: Examples/*
7+
SharpPcap.sln
8+
Test/capture_files/10k_packets.pcap
9+
Test/capture_files/arp_request_response.pcap
10+
Test/capture_files/ipv6_http.pcap
11+
Test/capture_files/ipv6_icmpv6_packet.pcap
12+
Test/capture_files/ip_packet_bogus_length.pcap
13+
Test/capture_files/README
14+
Test/capture_files/tcp.pcap
15+
Test/capture_files/tcp_with_extra_bytes.pcap
16+
Test/capture_files/test_stream.pcap
17+
Test/capture_files/udp_dns_request_response.pcap
18+
Copyright: Tamir Gal <[email protected]>
19+
Chris Morgan <[email protected]>
20+
License: MIT
21+
22+
Files: Tutorial/*
23+
History.md
24+
README.md
25+
renovate.json
26+
Copyright: Chris Morgan <[email protected]>
27+
License: MIT
28+
29+
Files: Test/capture_files/arp_with_vlan.pcap
30+
Copyright: Houcem Benali <[email protected]>
31+
License: MIT

.semaphore/semaphore.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2021-2022 Ayoub Kaanich <[email protected]>
2+
# SPDX-License-Identifier: MIT
3+
14
version: v1.0
25
name: Pipeline
36
agent:

Directory.Build.props

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<!--
2+
Copyright 2020-2021 Ayoub Kaanich <[email protected]>
3+
SPDX-License-Identifier: MIT
4+
-->
15
<Project>
26
<PropertyGroup>
37
<Deterministic>true</Deterministic>

Examples/CreatingCaptureFile/Program.cs

+2
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/Example1.IfList.cs

+2
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

Examples/Example10.SendQueue/Example10.SendQueues.cs

+2
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/Example11.Statistics/Example11.Statistics.cs

+2
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/Example12.PacketManipulation/Program.cs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT
2+
13
using System;
24
using System.Net.NetworkInformation;
35
using SharpPcap;

Examples/Example2.ArpResolve/Program.cs

+3-27
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,9 @@
33
using SharpPcap;
44
using SharpPcap.LibPcap;
55

6-
/*
7-
Copyright (c) 2006 Tamir Gal, http://www.tamirgal.com, All rights reserved.
8-
9-
Redistribution and use in source and binary forms, with or without
10-
modification, are permitted provided that the following conditions are met:
11-
12-
1. Redistributions of source code must retain the above copyright notice,
13-
this list of conditions and the following disclaimer.
14-
15-
2. Redistributions in binary form must reproduce the above copyright
16-
notice, this list of conditions and the following disclaimer in
17-
the documentation and/or other materials provided with the distribution.
18-
19-
3. The names of the authors may not be used to endorse or promote products
20-
derived from this software without specific prior written permission.
21-
22-
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
23-
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
24-
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR
25-
OR ANY CONTRIBUTORS TO THIS SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT,
26-
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
28-
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
29-
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
30-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
31-
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32-
*/
6+
// Copyright (c) 2006 Tamir Gal, http://www.tamirgal.com, All rights reserved.
7+
//
8+
// SPDX-License-Identifier: MIT
339

3410
namespace Example2
3511
{

Examples/Example3.BasicCap/Program.cs

+2
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/Example4.BasicCapNoCallback/Example4.BasicCapNoCallback.cs

+2
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

Examples/Example5.PcapFilter/Program.cs

+2
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

Examples/Example6.DumpTCP/Program.cs

+2
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

Examples/Example9.SendPacket/Example9.SendPacket.cs

+2
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

Examples/MultipleFiltersOnDevice/Program.cs

+2
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 PacketDotNet;

Examples/NpcapRemoteCapture/Program.cs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT
2+
13
using System;
24
using System.Net;
35
using SharpPcap;

Examples/QueuingPacketsForBackgroundProcessing/Program.cs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT
2+
13
using System;
24
using System.Collections.Generic;
35
using SharpPcap;

Examples/ReadingCaptureFile/Program.cs

+2
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/WakeOnLan/Program.cs

+3-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
1-
/*
2-
This file is part of SharpPcap.
3-
4-
SharpPcap is free software: you can redistribute it and/or modify
5-
it under the terms of the GNU Lesser General Public License as published by
6-
the Free Software Foundation, either version 3 of the License, or
7-
(at your option) any later version.
8-
9-
SharpPcap is distributed in the hope that it will be useful,
10-
but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12-
GNU Lesser General Public License for more details.
13-
14-
You should have received a copy of the GNU Lesser General Public License
15-
along with SharpPcap. If not, see <http://www.gnu.org/licenses/>.
16-
*/
17-
/*
18-
* Copyright 2010 Evan Plaice <[email protected]>
19-
*/
1+
// Copyright 2010 Evan Plaice <[email protected]>
2+
//
3+
// SPDX-License-Identifier: MIT
204

215
using System;
226
using PacketDotNet;

Examples/WinformsExample/CaptureForm.Designer.cs

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Examples/WinformsExample/CaptureForm.cs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT
2+
13
using System;
24
using System.Collections.Generic;
35
using System.Linq;

Examples/WinformsExample/DeviceListForm.Designer.cs

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Examples/WinformsExample/DeviceListForm.cs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT
2+
13
using System;
24
using System.Windows.Forms;
35
using SharpPcap;

Examples/WinformsExample/Program.cs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT
2+
13
using System;
24
using System.Windows.Forms;
35

Examples/WinpkFilterExample/Program.cs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT
2+
13
using System;
24
using PacketDotNet;
35
using SharpPcap;

0 commit comments

Comments
 (0)