Export rr_mk (Rr_mk)
This commit is contained in:
parent
534433a714
commit
f570d79c08
2
msg.go
2
msg.go
|
@ -1079,7 +1079,7 @@ func unpackRR(msg []byte, off int) (rr RR, off1 int, ok bool) {
|
||||||
}
|
}
|
||||||
end := off + int(h.Rdlength)
|
end := off + int(h.Rdlength)
|
||||||
// make an rr of that type and re-unpack.
|
// make an rr of that type and re-unpack.
|
||||||
mk, known := rr_mk[h.Rrtype]
|
mk, known := Rr_mk[h.Rrtype]
|
||||||
if !known {
|
if !known {
|
||||||
rr = new(RR_RFC3597)
|
rr = new(RR_RFC3597)
|
||||||
} else {
|
} else {
|
||||||
|
|
2
types.go
2
types.go
|
@ -1400,7 +1400,7 @@ func cmToString(mantissa, exponent uint8) string {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Map of constructors for each RR wire type.
|
// Map of constructors for each RR wire type.
|
||||||
var rr_mk = map[uint16]func() RR{
|
var Rr_mk = map[uint16]func() RR{
|
||||||
TypeCNAME: func() RR { return new(RR_CNAME) },
|
TypeCNAME: func() RR { return new(RR_CNAME) },
|
||||||
TypeHINFO: func() RR { return new(RR_HINFO) },
|
TypeHINFO: func() RR { return new(RR_HINFO) },
|
||||||
TypeMB: func() RR { return new(RR_MB) },
|
TypeMB: func() RR { return new(RR_MB) },
|
||||||
|
|
Loading…
Reference in New Issue