mnet_vars

package
v0.0.0-...-4adfca9 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: AGPL-3.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const (
	MPIPE_LINK_DEVICE_NAME_PREFIX    = "mp"  //l2 mpipe
	MPIPE_LINK_L3_DEVICE_NAME_PREFIX = "mpl" //l3 mpipe light
	MBINDER_LINK_DEVICE_NAME_PREFIX  = "mb"  //mbridge
)
View Source
const (
	DATA_KEY_SIZE                  = 32
	HMAC_SHA256_SIZE               = sha256.Size
	TIMESTAMP_SIZE                 = 8
	TIMESTAMP_DIFF_THRESHOLD int64 = 10.0 * 1e9 /* Acceptable timestamp difference threshold in nS (10.0 seconds) */
	UDP_MTU                        = 1472
	TAP_MTU                        = UDP_MTU - 14 - HMAC_SHA256_SIZE - TIMESTAMP_SIZE - DATA_KEY_SIZE
	TUN_MTU                        = UDP_MTU - 20 - 20 - HMAC_SHA256_SIZE - TIMESTAMP_SIZE - DATA_KEY_SIZE
)
View Source
const EMPTY_CONTRACT_ADDRESS = "0x0000000000000000000000000000000000000000"

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionArgs

type ConnectionArgs struct {
	L2KeyFile      string              // base encryption and validation key/l2 data, timestamp
	EncPayload     bool                // "secure/nosecure"
	LocalPort      string              // local/remote binding port
	RemoteIpAddr   string              // remote ip if not listening mode
	RemotePort     string              // remote ip port
	DataKey        *bytes.Buffer       // DataKey bytes, produced through DH exchange
	DataKeySignal  *chan *bytes.Buffer // channel used to notify when key changes
	PeerPubKeyHash string              // peer's pubkey hash
}

func (*ConnectionArgs) DebugPrint

func (c *ConnectionArgs) DebugPrint()

Jump to

Keyboard shortcuts

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