• Home
  • Raw
  • Download

Lines Matching refs:end

217 _bprint_c( char*  p, char*  end, int  c )  in _bprint_c()  argument
219 if (p < end) { in _bprint_c()
220 if (p+1 == end) in _bprint_c()
232 _bprint_b( char* p, char* end, const char* buf, int len ) in _bprint_b() argument
234 int avail = end - p; in _bprint_b()
245 if (p < end) in _bprint_b()
248 end[-1] = 0; in _bprint_b()
255 _bprint_s( char* p, char* end, const char* str ) in _bprint_s() argument
257 return _bprint_b(p, end, str, strlen(str)); in _bprint_s()
261 char* _bprint( char* p, char* end, const char* format, ... ) __DEBUG__;
262 char* _bprint( char* p, char* end, const char* format, ... ) in _bprint() argument
267 avail = end - p; in _bprint()
282 if (p == end) in _bprint()
290 _bprint_hex( char* p, char* end, unsigned value, int numDigits ) in _bprint_hex() argument
298 return _bprint_b(p, end, text, nn); in _bprint_hex()
303 _bprint_hexdump( char* p, char* end, const uint8_t* data, int datalen ) in _bprint_hexdump() argument
316 p = _bprint_c(p, end, ' '); in _bprint_hexdump()
317 p = _bprint_hex(p, end, data[nn], 2); in _bprint_hexdump()
320 p = _bprint_s(p, end, " "); in _bprint_hexdump()
322 p = _bprint_s(p, end, " "); in _bprint_hexdump()
330 p = _bprint_c(p, end, c); in _bprint_hexdump()
332 p = _bprint_c(p, end, '\n'); in _bprint_hexdump()
346 char* p = buff, *end = p + sizeof(buff); in XLOG_BYTES() local
348 p = _bprint_hexdump(p, end, base, len); in XLOG_BYTES()
459 const uint8_t* end; member
467 packet->end = buff + bufflen; in _dnsPacket_init()
482 if (p > packet->end) in _dnsPacket_skip()
483 p = packet->end; in _dnsPacket_skip()
493 if (p+2 > packet->end) in _dnsPacket_readInt16()
511 if (p + numBytes > packet->end) in _dnsPacket_checkBytes()
529 const uint8_t* end = packet->end; in _dnsPacket_checkQName() local
534 if (p >= end) in _dnsPacket_checkQName()
594 if (p + DNS_HEADER_SIZE > packet->end) { in _dnsPacket_checkQuery()
657 const uint8_t* end = packet->end; in _dnsPacket_bprintQName() local
663 if (p >= end) in _dnsPacket_bprintQName()
694 _dnsPacket_bprintQR(DnsPacket* packet, char* p, char* end) in _dnsPacket_bprintQR() argument
709 p = _dnsPacket_bprintQName(packet, p, end); in _dnsPacket_bprintQR()
712 p = _bprint_s(p, end, " ("); in _dnsPacket_bprintQR()
722 p = _bprint_s(p, end, typeString); in _dnsPacket_bprintQR()
725 p = _bprint(p, end, "UNKNOWN-%d", typeCode); in _dnsPacket_bprintQR()
728 p = _bprint_c(p, end, ')'); in _dnsPacket_bprintQR()
737 _dnsPacket_bprintQuery( DnsPacket* packet, char* p, char* end ) in _dnsPacket_bprintQuery() argument
742 p = _bprint_s(p, end, "RECURSIVE "); in _dnsPacket_bprintQuery()
750 p = _dnsPacket_bprintQR(packet, p, end); in _dnsPacket_bprintQuery()
771 const uint8_t* end = packet->end; in _dnsPacket_hashBytes() local
773 while (numBytes > 0 && p < end) { in _dnsPacket_hashBytes()
785 const uint8_t* end = packet->end; in _dnsPacket_hashQName() local
790 if (p >= end) { /* should not happen */ in _dnsPacket_hashQName()
804 if (p + c >= end) { in _dnsPacket_hashQName()
869 const uint8_t* end1 = pack1->end; in _dnsPacket_isEqualDomainName()
871 const uint8_t* end2 = pack2->end; in _dnsPacket_isEqualDomainName()
916 if ( p1 + numBytes > pack1->end || p2 + numBytes > pack2->end ) in _dnsPacket_isEqualBytes()
1432 char temp[256], *p=temp, *end=p+sizeof(temp); in _dump_query() local
1436 p = _dnsPacket_bprintQuery(pack, p, end); in _dump_query()
1443 char temp[512], *p=temp, *end=p+sizeof(temp); in _cache_dump_mru() local
1446 p = _bprint(temp, end, "MRU LIST (%2d): ", cache->num_entries); in _cache_dump_mru()
1448 p = _bprint(p, end, " %d", e->id); in _cache_dump_mru()