e2etool

package
v0.0.0-...-48a15a0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2022 License: 0BSD Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertClosed

func AssertClosed(t assert.TestingT, r io.Reader)

func AssertForward

func AssertForward(t assert.TestingT, r io.Reader, w io.Writer)

func AssertForward2

func AssertForward2(t assert.TestingT, n1, n2 io.ReadWriteCloser)

func AssertRead

func AssertRead(t assert.TestingT, r io.Reader, b []byte)

func AssertReadMask

func AssertReadMask(t assert.TestingT, r io.Reader, b []byte, m []byte)

func AssertWrite

func AssertWrite(t assert.TestingT, w io.Writer, b []byte)

func Chargen

func Chargen(c io.ReadWriteCloser)

func Discard

func Discard(c io.ReadWriteCloser)

func Echo

func Echo(c io.ReadWriteCloser)

func GetAddr

func GetAddr() (string, uint16)

func ServeTCP

func ServeTCP(ctx context.Context, addr string, f func(io.ReadWriteCloser))

func ServeUDP

func ServeUDP(ctx context.Context, addr string, f func(p net.PacketConn, d []byte, a net.Addr))

func UChargen

func UChargen(p net.PacketConn, d []byte, a net.Addr)

func UDiscard

func UDiscard(p net.PacketConn, d []byte, a net.Addr)

func UEcho

func UEcho(p net.PacketConn, d []byte, a net.Addr)

func WatchDog

func WatchDog()

func WatchDog10s

func WatchDog10s()

Types

type FakeEchoClientAuthenticationMethod

type FakeEchoClientAuthenticationMethod struct{}

func (FakeEchoClientAuthenticationMethod) Authenticate

func (FakeEchoClientAuthenticationMethod) ID

type FakeEchoServerAuthenticationMethod

type FakeEchoServerAuthenticationMethod struct{}

FakeEchoServerAuthenticationMethod is a fake auth method to test interactive authentication phase.

func (FakeEchoServerAuthenticationMethod) Authenticate

func (FakeEchoServerAuthenticationMethod) ID

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL