Documentation
¶
Index ¶
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) IsClosed() bool
- func (c *Conn) ReadICMP(buffer *buf.Buffer) error
- func (c *Conn) ReadIP(buffer *buf.Buffer) error
- func (c *Conn) SetLocalAddr(addr netip.Addr)
- func (c *Conn) SetReadDeadline(t time.Time) error
- func (c *Conn) WriteICMP(buffer *buf.Buffer) error
- func (c *Conn) WriteIP(buffer *buf.Buffer) error
- type Destination
- type PacketWriter
- type Port
- type UnprivilegedConn
- func (c *UnprivilegedConn) Close() error
- func (c *UnprivilegedConn) LocalAddr() net.Addr
- func (c *UnprivilegedConn) Read(b []byte) (n int, err error)
- func (c *UnprivilegedConn) ReadMsg(b []byte, oob []byte) (n, oobn int, addr netip.Addr, err error)
- func (c *UnprivilegedConn) RemoteAddr() net.Addr
- func (c *UnprivilegedConn) SetDeadline(t time.Time) error
- func (c *UnprivilegedConn) SetReadDeadline(t time.Time) error
- func (c *UnprivilegedConn) SetWriteDeadline(t time.Time) error
- func (c *UnprivilegedConn) Write(b []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) SetLocalAddr ¶
type Destination ¶
type Destination struct {
// contains filtered or unexported fields
}
func ConnectDestination ¶
func ConnectDestination( ctx context.Context, logger logger.ContextLogger, controlFunc control.Func, destination netip.Addr, writer PacketWriter, timeout time.Duration, ) (*Destination, error)
func (*Destination) Close ¶
func (d *Destination) Close() error
func (*Destination) IsClosed ¶
func (d *Destination) IsClosed() bool
func (*Destination) WritePacket ¶
func (d *Destination) WritePacket(packet *buf.Buffer) error
type PacketWriter ¶ added in v0.9.0
type Port ¶ added in v0.9.0
type Port struct {
// contains filtered or unexported fields
}
func (*Port) AttachReturn ¶ added in v0.9.0
func (*Port) DetachReturn ¶ added in v0.9.0
func (*Port) PortAddresses ¶ added in v0.9.0
func (*Port) WritePackets ¶ added in v0.9.0
type UnprivilegedConn ¶
type UnprivilegedConn struct {
// contains filtered or unexported fields
}
func (*UnprivilegedConn) Close ¶
func (c *UnprivilegedConn) Close() error
func (*UnprivilegedConn) LocalAddr ¶
func (c *UnprivilegedConn) LocalAddr() net.Addr
func (*UnprivilegedConn) RemoteAddr ¶
func (c *UnprivilegedConn) RemoteAddr() net.Addr
func (*UnprivilegedConn) SetDeadline ¶
func (c *UnprivilegedConn) SetDeadline(t time.Time) error
func (*UnprivilegedConn) SetReadDeadline ¶
func (c *UnprivilegedConn) SetReadDeadline(t time.Time) error
func (*UnprivilegedConn) SetWriteDeadline ¶
func (c *UnprivilegedConn) SetWriteDeadline(t time.Time) error
Click to show internal directories.
Click to hide internal directories.