1
0
mirror of https://github.com/golang/go synced 2024-11-26 21:01:31 -07:00

add comment for extractExtendedRCode

Change-Id: If4c43c6759dd83e6df0e59b1890ca7fab0af34e5
This commit is contained in:
Mateusz Poliwczak 2023-08-01 20:00:09 +02:00
parent 958d076cf0
commit adc304167e

View File

@ -255,6 +255,8 @@ func skipToAnswer(p *dnsmessage.Parser, qtype dnsmessage.Type) error {
}
}
// extractExtendedRCode extracts the extended RCode from the OPT resource (EDNS(0))
// If an OPT record is not found, the RCode from the hdr is returned.
func extractExtendedRCode(p dnsmessage.Parser, hdr dnsmessage.Header) dnsmessage.RCode {
p.SkipAllAnswers()
p.SkipAllAuthorities()