Documentation ¶
Overview ¶
Package STUN generates STUN request packets and parses response packets.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotSTUN = errors.New("response is not a STUN packet") ErrNotSuccessResponse = errors.New("STUN packet is not a response") ErrMalformedAttrs = errors.New("STUN response has malformed attributes") ErrNotBindingRequest = errors.New("STUN request not a binding request") ErrWrongSoftware = errors.New("STUN request came from non-Tailscale software") ErrNoFingerprint = errors.New("STUN request didn't end in fingerprint") ErrWrongFingerprint = errors.New("STUN request had bogus fingerprint") )
Functions ¶
Types ¶
type TxID ¶
type TxID [12]byte
TxID is a transaction ID.
func ParseBindingRequest ¶
ParseBindingRequest parses a STUN binding request.
It returns an error unless it advertises that it came from Tailscale.
Click to show internal directories.
Click to hide internal directories.