routing

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MarkRouter added in v1.0.1

type MarkRouter struct {
	// contains filtered or unexported fields
}

func NewMarkRouter added in v1.0.1

func NewMarkRouter(ipt *firewall.IptablesManager, lanInterfaces []string) *MarkRouter

func (*MarkRouter) Apply added in v1.0.1

func (r *MarkRouter) Apply(vpnType, chain string, resolveIface func() (string, error)) error

func (*MarkRouter) Intact added in v1.0.1

func (r *MarkRouter) Intact(vpnType, chain string) bool

func (*MarkRouter) Remove added in v1.0.1

func (r *MarkRouter) Remove(vpnType, chain string) error

func (*MarkRouter) Sync added in v1.0.1

func (r *MarkRouter) Sync(vpnType, chain string, resolveIface func() (string, error)) error

type XrayRouter

type XrayRouter struct {
	// contains filtered or unexported fields
}

func NewXrayRouter

func NewXrayRouter(ipt *firewall.IptablesManager, lanInterfaces []string) *XrayRouter

func (*XrayRouter) Apply

func (r *XrayRouter) Apply(chain string, info proxy.ChainInfo) error

func (*XrayRouter) ClearAppliedState added in v1.0.1

func (r *XrayRouter) ClearAppliedState(table string, clearV4, clearV6 bool)

func (*XrayRouter) Remove

func (r *XrayRouter) Remove(chain string) error

func (*XrayRouter) ResetStateFamily added in v0.0.4

func (r *XrayRouter) ResetStateFamily(resetV4, resetV6 bool)

func (*XrayRouter) Restore

func (r *XrayRouter) Restore(info map[string]proxy.ChainInfo, isRunning func(string) bool, restoreV4, restoreV6 bool, table string)

func (*XrayRouter) RoutingIntact added in v1.0.1

func (r *XrayRouter) RoutingIntact() bool

func (*XrayRouter) Shutdown

func (r *XrayRouter) Shutdown()

Jump to

Keyboard shortcuts

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