Beginning work on UAPI and routing table
This commit is contained in:
parent
6bd0b2fbe2
commit
1eebdf88a3
8 changed files with 529 additions and 0 deletions
14
src/device.go
Normal file
14
src/device.go
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"sync"
|
||||
)
|
||||
|
||||
type Device struct {
|
||||
mutex sync.RWMutex
|
||||
peers map[NoisePublicKey]*Peer
|
||||
privateKey NoisePrivateKey
|
||||
publicKey NoisePublicKey
|
||||
fwMark uint32
|
||||
listenPort uint16
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue