mirror of
https://github.com/miekg/dns.git
synced 2025-12-16 17:21:17 +01:00
set ExtendedRcode return type to int instead of uint8 (#347)
This commit is contained in:
parent
89d9c5e74b
commit
a5cc44dc6b
4
edns.go
4
edns.go
@ -96,8 +96,8 @@ func (rr *OPT) SetVersion(v uint8) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ExtendedRcode returns the EDNS extended RCODE field (the upper 8 bits of the TTL).
|
// ExtendedRcode returns the EDNS extended RCODE field (the upper 8 bits of the TTL).
|
||||||
func (rr *OPT) ExtendedRcode() uint8 {
|
func (rr *OPT) ExtendedRcode() int {
|
||||||
return uint8((rr.Hdr.Ttl&0xFF000000)>>24) + 15
|
return int((rr.Hdr.Ttl&0xFF000000)>>24) + 15
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetExtendedRcode sets the EDNS extended RCODE field.
|
// SetExtendedRcode sets the EDNS extended RCODE field.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user