crash.software
Projects
Pull Requests
Issues
Builds
dnstt
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
dnstt
Files
🤬
Sign In
a6602a87
ROOT
/
dns
/
dns.go
Search
History
557 lines
|
ISO-8859-1
|
15 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
compressionPointerLimit
ErrZeroLengthLabel
ErrLabelTooLong
ErrNameTooLong
ErrReservedLabelType
ErrTooManyPointers
ErrTrailingBytes
ErrIntegerOverflow
RRTypeTXT
RRTypeOPT
ClassIN
RcodeNoError
RcodeFormatError
RcodeNameError
RcodeNotImplemented
ExtendedRcodeBadVers
Name
String
()
:
string
TrimSuffix
(suffix Name)
:
(Name, bool)
NewName
(labels [][]byte)
:
(Name, error)
ParseName
(s string)
:
(Name, error)
Message
ID
:
uint16
Flags
:
uint16
Question
:
[]Question
Answer
:
[]RR
Authority
:
[]RR
Additional
:
[]RR
Question
Name
:
Name
Type
:
uint16
Class
:
uint16
RR
Name
:
Name
Type
:
uint16
Class
:
uint16
TTL
:
uint32
Data
:
[]byte
readName
(r io.ReadSeeker)
:
(Name, error)
readQuestion
(r io.ReadSeeker)
:
(Question, error)
readRR
(r io.ReadSeeker)
:
(RR, error)
readMessage
(r io.ReadSeeker)
:
(Message, error)
MessageFromWireFormat
(buf []byte)
:
(Message, error)
messageBuilder
w
:
bytes.Buffer
nameCache
:
map[string]int
newMessageBuilder
()
:
*messageBuilder
DecodeRDataTXT
(p []byte)
:
([]byte, error)
EncodeRDataTXT
(p []byte)
:
[]byte
*Message
Opcode
()
:
uint16
Rcode
()
:
uint16
WireFormat
()
:
([]byte, error)
*messageBuilder
Bytes
()
:
[]byte
WriteName
(name Name)
WriteQuestion
(question *Question)
WriteRR
(rr *RR)
:
error
WriteMessage
(message *Message)
:
error
All occurrences
Please wait...
Page is in error, reload to recover