Move multicasting into yggdrasil package

This commit is contained in:
Neil Alexander 2018-05-23 11:13:53 +01:00
parent 388ae09fca
commit 6f79184c9b
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
6 changed files with 196 additions and 129 deletions

View file

@ -19,10 +19,11 @@ type Core struct {
tun tunDevice
admin admin
searches searches
multicast multicast
tcp *tcpInterface
udp *udpInterface
log *log.Logger
ifceExpr *regexp.Regexp // the zone of link-local IPv6 peers must match this
ifceExpr []*regexp.Regexp // the zone of link-local IPv6 peers must match this
}
func (c *Core) Init() {
@ -49,6 +50,7 @@ func (c *Core) init(bpub *boxPubKey,
c.searches.init(c)
c.dht.init(c)
c.sessions.init(c)
c.multicast.init(c)
c.peers.init(c)
c.router.init(c)
c.switchTable.init(c, c.sigPub) // TODO move before peers? before router?