bridge

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package bridge is responsible for bridging linux tuns over network connections.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bridge added in v0.0.7

func Bridge(ctx context.Context, left, right ReadWriteCloser) error

Bridge given streams left and right together by reading IPpackets from both and writing them to the other.

Types

type ReadWriteCloser added in v0.0.7

type ReadWriteCloser interface {
	io.Closer
	Reader
	Writer
}

ReadWriteCloser allows reading and writing IP packets and implements io.Closer.

type Reader added in v0.0.7

type Reader interface {
	ReadPacket() (*packet.Packet, error)
}

Reader allows reading IP packets.

type Writer added in v0.0.7

type Writer interface {
	WritePacket(*packet.Packet) error
}

Writer allows writing IP packets.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL