2021-11-11 04:52:26 +01:00
|
|
|
package overlay
|
|
|
|
|
|
|
|
import (
|
|
|
|
"io"
|
|
|
|
"net"
|
2021-11-12 18:19:28 +01:00
|
|
|
|
|
|
|
"github.com/slackhq/nebula/iputil"
|
2021-11-11 04:52:26 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
type Device interface {
|
|
|
|
io.ReadWriteCloser
|
|
|
|
Activate() error
|
2021-11-12 19:47:09 +01:00
|
|
|
Cidr() *net.IPNet
|
|
|
|
Name() string
|
2021-11-12 18:19:28 +01:00
|
|
|
RouteFor(iputil.VpnIp) iputil.VpnIp
|
2021-11-11 04:52:26 +01:00
|
|
|
NewMultiQueueReader() (io.ReadWriteCloser, error)
|
|
|
|
}
|