TunnelForgeCoreNet 2.1.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package TunnelForgeCoreNet --version 2.1.2
                    
NuGet\Install-Package TunnelForgeCoreNet -Version 2.1.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TunnelForgeCoreNet" Version="2.1.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TunnelForgeCoreNet" Version="2.1.2" />
                    
Directory.Packages.props
<PackageReference Include="TunnelForgeCoreNet" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TunnelForgeCoreNet --version 2.1.2
                    
#r "nuget: TunnelForgeCoreNet, 2.1.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TunnelForgeCoreNet@2.1.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TunnelForgeCoreNet&version=2.1.2
                    
Install as a Cake Addin
#tool nuget:?package=TunnelForgeCoreNet&version=2.1.2
                    
Install as a Cake Tool

TunnelForgeCoreNet

TunnelForgeCoreNet — это кроссплатформенная обёртка на .NET Standard 2.1 для управления TUN/TAP-устройствами через C-интерфейс, реализованный на Go.

Возможности

  • Поддержка Linux (amd64)
  • Простое подключение к TUN/TAP интерфейсу
  • Унифицированный API для работы с виртуальными сетевыми интерфейсами
  • Использование Go-библиотеки через P/Invoke

Поддерживаемые платформы

  • .NET Standard 2.1
  • Linux x64

Установка

Добавь NuGet-пакет:

bash dotnet add package TunnelForgeCoreNet

Пример использования

using TunnelForgeCoreNet;

public class Example
{
    public void Run()
    {
        int openResult = TunnelForgeCore.Open("tun0");

        byte[] buffer = new byte[1500];
        int bytesRead = TunnelForgeCore.Read(buffer, buffer.Length);

        // обработка данных...

        TunnelForgeCore.Close();
    }
}

Структура пакета

  • runtimes/win-x64/native/libtuntap.linux-amd64.so
  • runtimes/win-x64/native/libtuntap.linux-amd64.h

.NET автоматически загрузит соответствующую нативную библиотеку.

Сборка

Нативные библиотеки собираются с использованием Golang + CGO. См. репозиторий для инструкции.

Лицензия

MIT — см. LICENSE.txt

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.7 58 7/5/2025
3.0.6 75 7/5/2025 3.0.6 is deprecated because it has critical bugs.
3.0.5 79 7/5/2025 3.0.5 is deprecated because it has critical bugs.
3.0.4 77 7/5/2025 3.0.4 is deprecated because it has critical bugs.
3.0.3 77 7/5/2025 3.0.3 is deprecated because it has critical bugs.
3.0.2 76 7/5/2025 3.0.2 is deprecated because it has critical bugs.
3.0.1 75 7/5/2025 3.0.1 is deprecated because it has critical bugs.
3.0.0 78 7/5/2025 3.0.0 is deprecated because it has critical bugs.
2.1.15 99 7/4/2025 2.1.15 is deprecated because it is no longer maintained and has critical bugs.
2.1.14 97 7/4/2025 2.1.14 is deprecated because it is no longer maintained and has critical bugs.
2.1.13 151 6/30/2025 2.1.13 is deprecated because it is no longer maintained and has critical bugs.
2.1.12 195 6/28/2025 2.1.12 is deprecated because it is no longer maintained and has critical bugs.
2.1.11 176 6/24/2025 2.1.11 is deprecated because it is no longer maintained and has critical bugs.
2.1.10 211 6/24/2025 2.1.10 is deprecated because it is no longer maintained.
2.1.9 221 6/23/2025 2.1.9 is deprecated because it is no longer maintained.
2.1.8 206 6/23/2025 2.1.8 is deprecated because it has critical bugs.
2.1.7 208 6/23/2025 2.1.7 is deprecated because it has critical bugs.
2.1.6 210 6/23/2025 2.1.6 is deprecated because it has critical bugs.
2.1.5 212 6/23/2025 2.1.5 is deprecated because it has critical bugs.
2.1.4 221 6/22/2025 2.1.4 is deprecated because it has critical bugs.
2.1.3 216 6/22/2025 2.1.3 is deprecated because it has critical bugs.
2.1.2 182 6/21/2025 2.1.2 is deprecated because it has critical bugs.
2.1.1 220 6/19/2025 2.1.1 is deprecated because it has critical bugs.
2.1.0 217 6/18/2025 2.1.0 is deprecated because it has critical bugs.