mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Parameterise tun.init
This commit is contained in:
parent
1a7df477b0
commit
9eaa2566c1
2 changed files with 4 additions and 5 deletions
|
@ -36,9 +36,11 @@ func getSupportedMTU(mtu int) int {
|
|||
}
|
||||
|
||||
// Initialises the TUN/TAP adapter.
|
||||
func (tun *tunDevice) init(core *Core) {
|
||||
func (tun *tunDevice) init(core *Core, send chan<- []byte, recv <-chan []byte) {
|
||||
tun.core = core
|
||||
tun.icmpv6.init(tun)
|
||||
tun.send = send
|
||||
tun.recv = recv
|
||||
}
|
||||
|
||||
// Starts the setup process for the TUN/TAP adapter, and if successful, starts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue