Home | History | Annotate | Download | only in net

Lines Matching full:off1

377 // and return (off1 int, ok bool).  If they return ok==false, they
378 // also return off1==len(msg), so that the next unpacker will
403 func packDomainName(s string, msg []byte, off int) (off1 int, ok bool) {
448 // we return off1 == the offset after the first pointer we found,
452 func unpackDomainName(msg []byte, off int) (s string, off1 int, ok bool) {
486 off1 = off
498 off1 = off
500 return s, off1, true
504 // returns off1 such that msg[off:off1] is the encoded data.
505 func packStruct(any dnsStruct, msg []byte, off int) (off1 int, ok bool) {
563 // returns off1 such that msg[off:off1] is the encoded data.
564 func unpackStruct(any dnsStruct, msg []byte, off int) (off1 int, ok bool) {
687 var off1 int
691 // off1 is end of header
693 off1, ok = packStruct(rr.Header(), msg, off)
699 rr.Header().Rdlength = uint16(off2 - off1)
705 func unpackRR(msg []byte, off int) (rr dnsRR, off1 int, ok bool) {