set ExtendedRcode return type to int instead of uint8 (#347)

This commit is contained in:
McStork 2016-04-18 18:40:15 +02:00 committed by Miek Gieben
parent 89d9c5e74b
commit a5cc44dc6b
1 changed files with 2 additions and 2 deletions

View File

@ -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.