From aeb1ce8d9c3ce162b1d01b18402e4387861e4cf2 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Sat, 1 Jan 2011 20:51:34 +0100 Subject: [PATCH] Fix the constnames --- msg.go | 2 +- types.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/msg.go b/msg.go index 7f2e6626..532fafb1 100644 --- a/msg.go +++ b/msg.go @@ -115,7 +115,7 @@ var opcode_str = map[int]string{ // Map of strings for rcode var rcode_str = map[int]string{ RcodeSuccess: "NOERROR", - RocdeFormatError: "FORMERR", + RcodeFormatError: "FORMERR", RcodeServerFailure: "SERVFAIL", RcodeNameError: "NXDOMAIN", RcodeNotImplemented: "NOTIMPL", diff --git a/types.go b/types.go index 9ac3b024..cb880ba1 100644 --- a/types.go +++ b/types.go @@ -97,7 +97,7 @@ const ( OpcodeStatus = 2 // There is no 3 OpcodeNotify = 4 - OpcodeUpdate = 4 + OpcodeUpdate = 5 ) // The wire format for the DNS packet header.