Documentation ¶
Overview ¶
relay
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DHCPConn ¶
type DHCPConn interface { // net.PacketConn methods ReadFrom(p []byte) (n int, addr net.Addr, err error) WriteTo(p []byte, addr net.Addr) (n int, err error) Close() error LocalAddr() net.Addr SetDeadline(t time.Time) error SetReadDeadline(t time.Time) error SetWriteDeadline(t time.Time) error // new methods ReadFromIP(p []byte) (n int, addr net.IP, err error) }
type Modifier ¶
type Modifier func(*RelayAgent)
func WithLinkAddr ¶
func WithOptions ¶
func WithPeerAddr ¶
func WithSvrAddr ¶
type PairDHCPConn ¶
type PairDHCPConn struct {
*conpair.PacketConnPair
}
func (*PairDHCPConn) ReadFromIP ¶
type RUDPDHCPConn ¶
func (*RUDPDHCPConn) ReadFromIP ¶
type RelayAgent ¶
type RelayAgent struct {
// contains filtered or unexported fields
}
func NewRelayAgent ¶
func NewRelayAgent(ctx context.Context, access, network DHCPConn, options ...Modifier) *RelayAgent
type UDPDHCPConn ¶
func (*UDPDHCPConn) ReadFromIP ¶
Click to show internal directories.
Click to hide internal directories.