Skip to content

Commit

Permalink
Change license to MIT
Browse files Browse the repository at this point in the history
  • Loading branch information
kayoub5 committed Dec 31, 2023
1 parent 0128405 commit 1ba86f1
Show file tree
Hide file tree
Showing 178 changed files with 724 additions and 1,383 deletions.
2 changes: 2 additions & 0 deletions .appveyor.yml
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,
Expand Down
3 changes: 3 additions & 0 deletions .circleci/config.yml
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:
Expand Down
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2018 Jan Pluskal
# SPDX-License-Identifier: MIT

# Auto detect text files and perform LF normalization
* text=auto

Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/dotnet-core.yml
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:
Expand Down Expand Up @@ -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
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2018 Jan Pluskal
# SPDX-License-Identifier: MIT

# Created by https://www.gitignore.io/api/visualstudio

### VisualStudio ###
Expand Down Expand Up @@ -299,5 +302,5 @@ __pycache__/

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

Scripts/htmldocs
Scripts/monodoc_output
Scripts/htmldocs
Scripts/monodoc_output
31 changes: 31 additions & 0 deletions .reuse/dep5
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
3 changes: 3 additions & 0 deletions .semaphore/semaphore.yml
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:
Expand Down
4 changes: 4 additions & 0 deletions Directory.Build.props
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>
Expand Down
2 changes: 2 additions & 0 deletions Examples/CreatingCaptureFile/Program.cs
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;
Expand Down
2 changes: 2 additions & 0 deletions Examples/Example1.IfList/Example1.IfList.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT

using System;
using SharpPcap;

Expand Down
2 changes: 2 additions & 0 deletions Examples/Example10.SendQueue/Example10.SendQueues.cs
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;
Expand Down
2 changes: 2 additions & 0 deletions Examples/Example11.Statistics/Example11.Statistics.cs
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;
Expand Down
2 changes: 2 additions & 0 deletions Examples/Example12.PacketManipulation/Program.cs
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;
Expand Down
30 changes: 3 additions & 27 deletions Examples/Example2.ArpResolve/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,9 @@
using SharpPcap;
using SharpPcap.LibPcap;

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

namespace Example2
{
Expand Down
2 changes: 2 additions & 0 deletions Examples/Example3.BasicCap/Program.cs
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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT

using System;
using SharpPcap;

Expand Down
2 changes: 2 additions & 0 deletions Examples/Example5.PcapFilter/Program.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT

using System;
using SharpPcap;

Expand Down
2 changes: 2 additions & 0 deletions Examples/Example6.DumpTCP/Program.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT

using System;
using SharpPcap;

Expand Down
2 changes: 2 additions & 0 deletions Examples/Example9.SendPacket/Example9.SendPacket.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT

using System;
using SharpPcap;

Expand Down
2 changes: 2 additions & 0 deletions Examples/MultipleFiltersOnDevice/Program.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT

using System;
using SharpPcap;
using PacketDotNet;
Expand Down
2 changes: 2 additions & 0 deletions Examples/NpcapRemoteCapture/Program.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT

using System;
using System.Net;
using SharpPcap;
Expand Down
2 changes: 2 additions & 0 deletions Examples/QueuingPacketsForBackgroundProcessing/Program.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT

using System;
using System.Collections.Generic;
using SharpPcap;
Expand Down
2 changes: 2 additions & 0 deletions Examples/ReadingCaptureFile/Program.cs
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;
Expand Down
22 changes: 3 additions & 19 deletions Examples/WakeOnLan/Program.cs
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
/*
This file is part of SharpPcap.
SharpPcap is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
SharpPcap is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with SharpPcap. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* Copyright 2010 Evan Plaice <[email protected]>
*/
// Copyright 2010 Evan Plaice <[email protected]>
//
// SPDX-License-Identifier: MIT

using System;
using PacketDotNet;
Expand Down
2 changes: 2 additions & 0 deletions Examples/WinformsExample/CaptureForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Examples/WinformsExample/CaptureForm.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT

using System;
using System.Collections.Generic;
using System.Linq;
Expand Down
2 changes: 2 additions & 0 deletions Examples/WinformsExample/DeviceListForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Examples/WinformsExample/DeviceListForm.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT

using System;
using System.Windows.Forms;
using SharpPcap;
Expand Down
2 changes: 2 additions & 0 deletions Examples/WinformsExample/Program.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT

using System;
using System.Windows.Forms;

Expand Down
2 changes: 2 additions & 0 deletions Examples/WinpkFilterExample/Program.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT

using System;
using PacketDotNet;
using SharpPcap;
Expand Down
Loading

0 comments on commit 1ba86f1

Please sign in to comment.