Documentation ¶
Index ¶
- Constants
- Variables
- func AddrAddArr(i int, k ...string) error
- func CheckFolder(folder string) error
- func CheckKernelFouCapability() error
- func ConnectionTimeout(conn *net.Conn, s int, q *chan bool)
- func Err(err error)
- func FouAdd(p int) error
- func FouDel(p int) error
- func IniVal(text, key string) string
- func InitLogger(logfile string, level uint8)
- func InterfaceAdd(id int, sourcePort int, remote string, destinationPort int, MTU int) error
- func InterfaceDel(id int) error
- func InterfaceName(clientid int) string
- func IsInterfacesExist(iface int) bool
- func LogDefer()
- func NewOTK(password string) string
- func NewReader(conn *net.Conn, i int, pC chan []byte, errC chan error)
- func OTKCheck(otk, password string) bool
- func PortGenerate() int
- func UDPPortCheck(port int) error
- type Env
Constants ¶
View Source
const InterfacePrefix = "dyn"
Variables ¶
View Source
var (
Logger *zap.Logger
)
Functions ¶
func AddrAddArr ¶
func CheckFolder ¶
Check folder is exist or not if not, create the folder
func CheckKernelFouCapability ¶
func CheckKernelFouCapability() error
func InterfaceAdd ¶
func InterfaceDel ¶
func InterfaceName ¶
func IsInterfacesExist ¶
func PortGenerate ¶
func PortGenerate() int
func UDPPortCheck ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.