config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2019 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LocalV4Config LocalConfig      `yaml:"local_v4"`
	LocalV6Config LocalConfig      `yaml:"local_v6"`
	Sources       []SourceConfig   `yaml:"sources"`
	Receivers     []ReceiverConfig `yaml:"receivers"`
}

type LocalConfig

type LocalConfig struct {
	Interface  string `yaml:"interface"`
	Address    string `yaml:"address"`
	GatewayMAC string `yaml:"gateway_mac"`
	Port       int    `yaml:"port"`
}

type ReceiverConfig

type ReceiverConfig struct {
	Name            string `yaml:"name"`
	Spoof           bool   `yaml:"spoof"`
	PreserveUdpPort bool   `yaml:"preserve_udp_port"`
	Proto           string `yaml:"proto"`
	Ip              string `yaml:"ip"`
	IPvPref         int    `yaml:"ipv_pref"`
	Port            int    `yaml:"port"`
}

type SourceConfig

type SourceConfig struct {
	Name                string `yaml:"name"`
	SourceIP            string `yaml:"source_ip"`
	StickyBytesStart    int    `yaml:"sticky_bytes_start"`
	StickyBytesLength   int    `yaml:"sticky_bytes_length"`
	StickyBytesEnd      int
	DefaultCatchallOnly bool     `yaml:"default_catchall_only"`
	Receivers           []string `yaml:"receivers"`
}

Jump to

Keyboard shortcuts

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