Versions in this module Expand all Collapse all v1 v1.3.1 Nov 30, 2026 v1.3.0 Nov 30, 2026 Changes in this version + const MaxIPPacketBytes + const MaxWirePayloadBytes + const MinWirePayloadBytes + const OpenSSHAFInet + const OpenSSHAFInet6 + func BridgeMux(ctx context.Context, muxConn, remoteTUN io.ReadWriteCloser) error + func EncodeWireFrame(dst, pkt []byte) ([]byte, string, bool) + func ReadMuxFrame(r io.Reader, scratch []byte) ([]byte, error) + func ReadWireFrame(r io.Reader, frameBuf []byte) ([]byte, error) + func ValidateLocalIPPacket(pkt []byte) (af uint32, reason string, ok bool) + func ValidateWireFrame(frame []byte) error + func WriteFull(w io.Writer, data []byte) error + func WriteMuxFrame(w io.Writer, pkt []byte) error + type FramedConn struct + func NewFramedConn(conn io.ReadWriteCloser) (*FramedConn, error) + func (c *FramedConn) Close() error + func (c *FramedConn) Read(dst []byte) (int, error) + func (c *FramedConn) Write(p []byte) (int, error)