NSEC3PARAM record
This commit is contained in:
parent
0f364d638e
commit
5442276337
4
msg.go
4
msg.go
|
@ -543,8 +543,10 @@ func unpackStructValue(val *reflect.StructValue, msg []byte, off int) (off1 int,
|
||||||
consumed = 4 // KeyTag(2) + Algorithm(1) + DigestType(1)
|
consumed = 4 // KeyTag(2) + Algorithm(1) + DigestType(1)
|
||||||
case "RR_SSHFP":
|
case "RR_SSHFP":
|
||||||
consumed = 2 // Algorithm(1) + Type(1)
|
consumed = 2 // Algorithm(1) + Type(1)
|
||||||
|
case "RR_NSEC3PARAM":
|
||||||
|
consumed = 5 // Hash(1) + Flags(1) + Iterations(2) + SaltLength(1)
|
||||||
default:
|
default:
|
||||||
consumed = 0 // TODO
|
consumed = 0 // return len(msg), false?
|
||||||
}
|
}
|
||||||
s = hex.EncodeToString(msg[off : off+rdlength-consumed])
|
s = hex.EncodeToString(msg[off : off+rdlength-consumed])
|
||||||
off += rdlength - consumed
|
off += rdlength - consumed
|
||||||
|
|
Loading…
Reference in New Issue