| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 | package udpimport (	"net/netip"	"github.com/slackhq/nebula/config")const MTU = 9001type EncReader func(	addr netip.AddrPort,	payload []byte,)type Conn interface {	Rebind() error	LocalAddr() (netip.AddrPort, error)	ListenOut(r EncReader)	WriteTo(b []byte, addr netip.AddrPort) error	ReloadConfig(c *config.C)	Close() error}type NoopConn struct{}func (NoopConn) Rebind() error {	return nil}func (NoopConn) LocalAddr() (netip.AddrPort, error) {	return netip.AddrPort{}, nil}func (NoopConn) ListenOut(_ EncReader) {	return}func (NoopConn) WriteTo(_ []byte, _ netip.AddrPort) error {	return nil}func (NoopConn) ReloadConfig(_ *config.C) {	return}func (NoopConn) Close() error {	return nil}
 |