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()
Click to show internal directories.
Click to hide internal directories.