2021-11-03 19:54:04 -06:00
|
|
|
package udp
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/slackhq/nebula/header"
|
|
|
|
"github.com/slackhq/nebula/iputil"
|
|
|
|
)
|
|
|
|
|
|
|
|
type EncWriter interface {
|
2022-06-21 12:35:23 -06:00
|
|
|
SendVia(via interface{},
|
|
|
|
relay interface{},
|
|
|
|
ad,
|
|
|
|
nb,
|
|
|
|
out []byte,
|
|
|
|
nocopy bool,
|
|
|
|
)
|
2021-11-03 19:54:04 -06:00
|
|
|
SendMessageToVpnIp(t header.MessageType, st header.MessageSubType, vpnIp iputil.VpnIp, p, nb, out []byte)
|
2022-06-21 12:35:23 -06:00
|
|
|
Handshake(vpnIp iputil.VpnIp)
|
2021-11-03 19:54:04 -06:00
|
|
|
}
|
|
|
|
|
2022-06-21 12:35:23 -06:00
|
|
|
//TODO: The items in this file belong in their own packages but doing that in a single PR is a nightmare
|
|
|
|
|
2021-11-03 19:54:04 -06:00
|
|
|
type LightHouseHandlerFunc func(rAddr *Addr, vpnIp iputil.VpnIp, p []byte, w EncWriter)
|