Lines Matching refs:ptr
82 ns_skiprr(const u_char *ptr, const u_char *eom, ns_sect section, int count) { in ns_skiprr() argument
83 const u_char *optr = ptr; in ns_skiprr()
88 b = dn_skipname(ptr, eom); in ns_skiprr()
91 ptr += b/*Name*/ + NS_INT16SZ/*Type*/ + NS_INT16SZ/*Class*/; in ns_skiprr()
93 if (ptr + NS_INT32SZ + NS_INT16SZ > eom) in ns_skiprr()
95 ptr += NS_INT32SZ/*TTL*/; in ns_skiprr()
96 NS_GET16(rdlength, ptr); in ns_skiprr()
97 ptr += rdlength/*RData*/; in ns_skiprr()
100 if (ptr > eom) in ns_skiprr()
102 _DIAGASSERT(__type_fit(int, ptr - optr)); in ns_skiprr()
103 return (int)(ptr - optr); in ns_skiprr()