mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 06:35:07 +03:00
more switch migration
This commit is contained in:
parent
555b4c18d4
commit
998c76fd8c
5 changed files with 42 additions and 38 deletions
|
@ -242,7 +242,7 @@ func (p *peer) _handleTraffic(packet []byte, pTypeLen int) {
|
|||
// Drop traffic if the peer isn't in the switch
|
||||
return
|
||||
}
|
||||
p.core.switchTable.packetIn <- packet
|
||||
p.core.switchTable.packetInFrom(p, packet)
|
||||
}
|
||||
|
||||
func (p *peer) sendPacketsFrom(from phony.IActor, packets [][]byte) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue