formatting and documentation
This commit is contained in:
parent
77348913dd
commit
98e4b33cb5
2
edns.go
2
edns.go
|
@ -109,7 +109,7 @@ func (rr *RR_OPT) Do() bool {
|
||||||
return byte(rr.Hdr.Ttl>>8)&_DO == _DO
|
return byte(rr.Hdr.Ttl>>8)&_DO == _DO
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the DO bit
|
// Set the DO bit.
|
||||||
func (rr *RR_OPT) SetDo() {
|
func (rr *RR_OPT) SetDo() {
|
||||||
b1 := byte(rr.Hdr.Ttl >> 24)
|
b1 := byte(rr.Hdr.Ttl >> 24)
|
||||||
b2 := byte(rr.Hdr.Ttl >> 16)
|
b2 := byte(rr.Hdr.Ttl >> 16)
|
||||||
|
|
|
@ -95,7 +95,7 @@ func (res *Resolver) Query(q *Msg) (d *Msg, err os.Error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start an AXFR, q should contain a message with the question
|
// Start an AXFR, q should contain a message with the question
|
||||||
// for an AXFR ("miek.nl" ANY AXFR. All incoming axfr snippets
|
// for an AXFR: "miek.nl" ANY AXFR. All incoming axfr snippets
|
||||||
// are returned on the channel m. The function closes the
|
// are returned on the channel m. The function closes the
|
||||||
// channel to signal the end of the AXFR.
|
// channel to signal the end of the AXFR.
|
||||||
func (res *Resolver) Axfr(q *Msg, m chan *Msg) {
|
func (res *Resolver) Axfr(q *Msg, m chan *Msg) {
|
||||||
|
|
Loading…
Reference in New Issue