Formatting and reshuffle some code
This commit is contained in:
parent
3342ee9d85
commit
be9467466c
14
types.go
14
types.go
|
@ -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) },
|
||||
|
|
Loading…
Reference in New Issue