• Home
  • Raw
  • Download

Lines Matching refs:buffer_end

158     const char* read(const char* buffer, const char* buffer_end);
159 char* write(char* buffer, const char* buffer_end) const;
162 const char* parseField(const char* buffer, const char* buffer_end,
170 const char* DNSName::read(const char* buffer, const char* buffer_end) { in read() argument
174 cur = parseField(cur, buffer_end, &last); in read()
183 char* DNSName::write(char* buffer, const char* buffer_end) const { in write()
198 if (buffer_cur + sizeof(uint8_t) + len > buffer_end) { in write()
213 const char* DNSName::parseField(const char* buffer, const char* buffer_end, in parseField() argument
215 if (buffer + sizeof(uint8_t) > buffer_end) { in parseField()
228 if (cur + ofs > buffer_end) { in parseField()
247 const char* read(const char* buffer, const char* buffer_end);
248 char* write(char* buffer, const char* buffer_end) const;
252 const char* DNSQuestion::read(const char* buffer, const char* buffer_end) { in read() argument
253 const char* cur = qname.read(buffer, buffer_end); in read()
258 if (cur + 2*sizeof(uint16_t) > buffer_end) { in read()
267 char* DNSQuestion::write(char* buffer, const char* buffer_end) const { in write()
268 char* buffer_cur = qname.write(buffer, buffer_end); in write()
270 if (buffer_cur + 2*sizeof(uint16_t) > buffer_end) { in write()
293 const char* read(const char* buffer, const char* buffer_end);
294 char* write(char* buffer, const char* buffer_end) const;
304 const char* readIntFields(const char* buffer, const char* buffer_end,
307 const char* buffer_end) const;
310 const char* DNSRecord::read(const char* buffer, const char* buffer_end) { in read() argument
311 const char* cur = name.read(buffer, buffer_end); in read()
317 cur = readIntFields(cur, buffer_end, &rdlen); in read()
322 if (cur + rdlen > buffer_end) { in read()
330 char* DNSRecord::write(char* buffer, const char* buffer_end) const { in write()
331 char* buffer_cur = name.write(buffer, buffer_end); in write()
333 buffer_cur = writeIntFields(rdata.size(), buffer_cur, buffer_end); in write()
335 if (buffer_cur + rdata.size() > buffer_end) { in write()
349 const char* DNSRecord::readIntFields(const char* buffer, const char* buffer_end, in readIntFields() argument
351 if (buffer + sizeof(IntFields) > buffer_end ) { in readIntFields()
364 const char* buffer_end) const { in writeIntFields()
365 if (buffer + sizeof(IntFields) > buffer_end ) { in writeIntFields()
391 const char* read(const char* buffer, const char* buffer_end);
392 char* write(char* buffer, const char* buffer_end) const;
406 const char* readHeader(const char* buffer, const char* buffer_end,
411 const char* DNSHeader::read(const char* buffer, const char* buffer_end) { in read() argument
416 const char* cur = readHeader(buffer, buffer_end, &qdcount, &ancount, in read()
425 cur = questions[i].read(cur, buffer_end); in read()
435 cur = answers[i].read(cur, buffer_end); in read()
445 cur = authorities[i].read(cur, buffer_end); in read()
455 cur = additionals[i].read(cur, buffer_end); in read()
465 char* DNSHeader::write(char* buffer, const char* buffer_end) const { in write()
466 if (buffer + sizeof(Header) > buffer_end) { in write()
487 buffer_cur = question.write(buffer_cur, buffer_end); in write()
491 buffer_cur = answer.write(buffer_cur, buffer_end); in write()
495 buffer_cur = authority.write(buffer_cur, buffer_end); in write()
499 buffer_cur = additional.write(buffer_cur, buffer_end); in write()
510 const char* DNSHeader::readHeader(const char* buffer, const char* buffer_end, in readHeader() argument
513 if (buffer + sizeof(Header) > buffer_end) in readHeader()
721 const char* buffer_end = buffer + len; in handleDNSRequest() local
723 const char* cur = header.read(buffer, buffer_end); in handleDNSRequest()