Documentation ¶
Index ¶
- Constants
- func BPF() []byte
- func DefaultInterface(addr IP4) *net.Interface
- func VlanInterface(prefix net.IPNet) (ret iface, _ bool)
- func VlanInterfaces(in map[uint16]net.IPNet) map[uint16]iface
- type Client
- func (b *Client) CreateDestination(s Service, d Destination) error
- func (b *Client) CreateService(s Service) error
- func (b *Client) Destinations(s Service) ([]DestinationExtended, error)
- func (c *Client) Info() (i Info)
- func (b *Client) NATAddr(vip, rip IP4) (r IP4, _ bool)
- func (b *Client) NATAddress(vip, rip netip.Addr) (r netip.Addr, _ bool)
- func (c *Client) Namespace() string
- func (c *Client) NamespaceAddress() string
- func (c *Client) Prefixes() [PREFIXES]uint64
- func (b *Client) RemoveDestination(s Service, d Destination) error
- func (b *Client) RemoveService(s Service) error
- func (b *Client) Service(s Service) (se ServiceExtended, e error)
- func (b *Client) Services() ([]ServiceExtended, error)
- func (b *Client) Start() error
- func (b *Client) UpdateDestination(s Service, d Destination) error
- func (b *Client) UpdateService(s Service) error
- func (b *Client) UpdateVLANs(vlans map[uint16]net.IPNet)
- type Destination
- type DestinationExtended
- type ICMP
- type IP4
- type Info
- type MAC
- type Maps
- type Protocol
- type Service
- type ServiceExtended
- type Stats
- type Target
Constants ¶
View Source
const ( TCP protocol = 0x06 UDP protocol = 0x11 )
View Source
const NAMESPACE = "vc5"
View Source
const PREFIXES = 1048576
Variables ¶
This section is empty.
Functions ¶
func DefaultInterface ¶ added in v0.0.32
func VlanInterface ¶
Types ¶
type Client ¶
type Client struct { Interfaces []string VLANs map[uint16]net.IPNet NAT bool Native bool Redirect bool Address netip.Addr // find default interface when not in VLAN mode // contains filtered or unexported fields }
func (*Client) CreateDestination ¶
func (b *Client) CreateDestination(s Service, d Destination) error
func (*Client) CreateService ¶
func (*Client) Destinations ¶
func (b *Client) Destinations(s Service) ([]DestinationExtended, error)
func (*Client) NATAddress ¶ added in v0.0.9
func (*Client) NamespaceAddress ¶ added in v0.0.20
func (*Client) RemoveDestination ¶
func (b *Client) RemoveDestination(s Service, d Destination) error
func (*Client) RemoveService ¶
func (*Client) Service ¶ added in v0.0.15
func (b *Client) Service(s Service) (se ServiceExtended, e error)
func (*Client) Services ¶
func (b *Client) Services() ([]ServiceExtended, error)
func (*Client) UpdateDestination ¶
func (b *Client) UpdateDestination(s Service, d Destination) error
func (*Client) UpdateService ¶
type Destination ¶
type DestinationExtended ¶
type DestinationExtended struct { Destination Destination MAC MAC Stats Stats }
type Maps ¶
type Maps struct {
// contains filtered or unexported fields
}
func (*Maps) Distributed ¶ added in v0.0.26
func (*Maps) ReadPrefixCounters ¶ added in v0.0.26
type Service ¶
type ServiceExtended ¶
Click to show internal directories.
Click to hide internal directories.