Formatting and reshuffle some code

This commit is contained in:
Miek Gieben 2014-01-12 10:11:23 +00:00
parent 3342ee9d85
commit be9467466c
1 changed files with 7 additions and 7 deletions

View File

@ -165,13 +165,6 @@ const (
_LOC_EQUATOR = 1 << 31 // RFC 1876, Section 2.
)
// copyID returns a copy of ip.
func copyIP(ip net.IP) net.IP {
p := make(net.IP, len(ip))
copy(p, ip)
return p
}
// DNS queries.
type Question struct {
Name string `dns:"cdomain-name"` // "cdomain-name" specifies encoding (and may be compressed)
@ -1509,6 +1502,13 @@ func euiToString(eui uint64, bits int) (hex string) {
return
}
// copyIP returns a copy of ip.
func copyIP(ip net.IP) net.IP {
p := make(net.IP, len(ip))
copy(p, ip)
return p
}
// Map of constructors for each RR wire type.
var rr_mk = map[uint16]func() RR{
TypeA: func() RR { return new(A) },