net

package
v0.26.7 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NetbirdFwmark is the fwmark value used by Netbird via wireguard
	NetbirdFwmark = 0x1BD00
)

Variables

This section is empty.

Functions

func DialTCP

func DialTCP(network string, laddr, raddr *net.TCPAddr) (*net.TCPConn, error)

func DialUDP

func DialUDP(network string, laddr, raddr *net.UDPAddr) (*net.UDPConn, error)

func ListenUDP

func ListenUDP(network string, laddr *net.UDPAddr) (*net.UDPConn, error)

func NewDialer

func NewDialer() *net.Dialer

func NewListener

func NewListener() *net.ListenConfig

func SetRawSocketMark

func SetRawSocketMark(conn syscall.RawConn) error

func SetSocketMark

func SetSocketMark(conn syscall.Conn) error

SetSocketMark sets the SO_MARK option on the given socket connection

Types

This section is empty.

Jump to

Keyboard shortcuts

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