ipv6

package
v0.0.0-...-8cd7732 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package ipv6 provides toggles for IPv6 part of the TCP/IP stack.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blocker

type Blocker interface {
	Block() error
	Unblock() error
}

Blocker provides idempotent blocking and unblocking.

type Ipv6

type Ipv6 struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewIpv6

func NewIpv6() *Ipv6

func (*Ipv6) Block

func (i *Ipv6) Block() error

Block ipv6 and backup previous settings if there is no backup.

func (*Ipv6) Unblock

func (i *Ipv6) Unblock() error

Unblock Ipv6 and restore previous settings from backup.

Jump to

Keyboard shortcuts

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