Update awdl.go to use new link stuff (untested)

This commit is contained in:
Neil Alexander 2019-01-19 00:42:53 +00:00
parent 4ae36dfffe
commit c51a3340b1
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
3 changed files with 94 additions and 9 deletions

View file

@ -44,7 +44,8 @@ type Core struct {
searches searches
multicast multicast
tcp tcpInterface
link link
link link // TODO: not sure if this wants to be here?
awdl awdl
log *log.Logger
}
@ -198,12 +199,10 @@ func (c *Core) Start(nc *config.NodeConfig, log *log.Logger) error {
return err
}
/*
if err := c.awdl.init(c); err != nil {
c.log.Println("Failed to start AWDL interface")
return err
}
*/
if err := c.awdl.init(c); err != nil {
c.log.Println("Failed to start AWDL interface")
return err
}
if nc.SwitchOptions.MaxTotalQueueSize >= SwitchQueueTotalMinSize {
c.switchTable.queueTotalMaxSize = nc.SwitchOptions.MaxTotalQueueSize