package ipv6

import (
	"github.com/sagernet/gvisor/pkg/tcpip"
	"github.com/sagernet/gvisor/pkg/tcpip/stack"
)

type ExportedEndpoint interface {
	WritePacketDirect(r *stack.Route, pkt *stack.PacketBuffer) tcpip.Error
}

func (e *endpoint) WritePacketDirect(r *stack.Route, pkt *stack.PacketBuffer) tcpip.Error {
	return e.writePacket(r, pkt, pkt.TransportProtocolNumber, true)
}
