Documentation ¶
Index ¶
- Constants
- type Datagram
- type DatagramHandler
- type Header
- func (u Header) Checksum() uint16
- func (u Header) DestinationPort() uint16
- func (u Header) Packet() []byte
- func (u Header) Payload() []byte
- func (u Header) PayloadLen() uint16
- func (u Header) SetChecksum(ipHdr ip.Header)
- func (u Header) SetDestinationPort(port uint16)
- func (u Header) SetPayloadLen(l uint16)
- func (u Header) SetSourcePort(port uint16)
- func (u Header) SourcePort() uint16
- func (u Header) String() string
- func (u Header) TotalLen() uint16
Constants ¶
View Source
const HeaderLen = 8
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatagramHandler ¶
func NewDnsInterceptor ¶
func NewDnsInterceptor(toTun ip.Writer, id tunnel.ConnID, remove func(), dnsAddr *net.UDPAddr) (DatagramHandler, error)
NewDnsInterceptor returns a handler that exchanges messages directly with the given dnsConn instead of passing them on to the traffic-manager
type Header ¶
type Header []byte
The UDP datagram and its payload
func (Header) DestinationPort ¶
func (Header) PayloadLen ¶
func (Header) SetChecksum ¶
func (Header) SetDestinationPort ¶
func (Header) SetPayloadLen ¶
func (Header) SetSourcePort ¶
func (Header) SourcePort ¶
Click to show internal directories.
Click to hide internal directories.