代码拉取完成,页面将自动刷新
package dns
import (
"fmt"
)
// All dns protocol errors are defined here.
type dnsError struct {
message string
}
func (e *dnsError) Error() string {
if e == nil {
return "<nil>"
}
return e.message
}
func (e *dnsError) responseError() string {
return "Response: " + e.Error()
}
// Common
var (
nonDNSMsg = &dnsError{message: "Message's data could not be decoded as DNS"}
duplicateQueryMsg = &dnsError{message: "Another query with the same DNS ID from this client " +
"was received so this query was closed without receiving a response"}
noResponse = &dnsError{message: "No response to this query was received"}
orphanedResponse = &dnsError{message: "Response: received without an associated Query"}
)
// EDNS
var (
udpPacketTooLarge = &dnsError{message: fmt.Sprintf("Non-EDNS packet has size greater than %d", maxDNSPacketSize)}
respEdnsNoSupport = &dnsError{message: "Responder does not support EDNS"}
respEdnsUnexpected = &dnsError{message: "Unexpected EDNS answer"}
)
// TCP
var (
zeroLengthMsg = &dnsError{message: "Message's length was set to zero"}
unexpectedLengthMsg = &dnsError{message: "Unexpected message data length"}
incompleteMsg = &dnsError{message: "Message's data is incomplete"}
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。