Add RcodeBadCookie (23)

This commit is contained in:
Miek Gieben 2016-06-12 13:10:24 +01:00
parent e048e89b44
commit 331ecbbc51
2 changed files with 8 additions and 6 deletions

1
msg.go
View File

@ -147,6 +147,7 @@ var RcodeToString = map[int]string{
RcodeBadName: "BADNAME",
RcodeBadAlg: "BADALG",
RcodeBadTrunc: "BADTRUNC",
RcodeBadCookie: "BADCOOKIE",
}
// Rather than write the usual handful of routines to pack and

View File

@ -135,6 +135,7 @@ const (
RcodeBadName = 20
RcodeBadAlg = 21
RcodeBadTrunc = 22 // TSIG
RcodeBadCookie = 23 // DNS Cookies
// Message Opcodes. There is no 3.
OpcodeQuery = 0