/* packet-dns.c
* Routines for DNS packet disassembly
*
- * $Id: packet-dns.c,v 1.77 2001/12/10 00:25:27 guy Exp $
+ * $Id: packet-dns.c,v 1.78 2002/01/19 23:59:02 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
len = get_dns_name_type_class(tvb, offset, dns_data_offset, name, &name_len,
&type, &class);
- if (len < 0) {
- /* We ran past the end of the data in the packet. */
- return 0;
- }
data_offset += len;
type_name = dns_type_name(type);
}
while (count-- > 0) {
add_off = dissect_dns_query(tvb, cur_off, dns_data_offset, cinfo, qatree);
- if (add_off <= 0) {
- /* We ran past the end of the captured data in the packet. */
- break;
- }
cur_off += add_off;
}
if (ti)
}
while (count-- > 0) {
add_off = dissect_dns_answer(tvb, cur_off, dns_data_offset, cinfo, qatree);
- if (add_off <= 0) {
- /* We ran past the end of the captured data in the packet. */
- break;
- }
cur_off += add_off;
}
if (ti)
* to when it had only NBNS)
* Guy Harris <guy@alum.mit.edu>
*
- * $Id: packet-nbns.c,v 1.69 2002/01/07 00:57:46 guy Exp $
+ * $Id: packet-nbns.c,v 1.70 2002/01/19 23:59:03 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
while (count-- > 0) {
add_off = dissect_nbns_query(tvb, cur_off, nbns_data_offset,
cinfo, qatree);
- if (add_off <= 0) {
- /* We ran past the end of the captured data in the
- packet. */
- break;
- }
cur_off += add_off;
}
if (ti != NULL)
while (count-- > 0) {
add_off = dissect_nbns_answer(tvb, cur_off, nbns_data_offset,
cinfo, qatree, opcode);
- if (add_off <= 0) {
- /* We ran past the end of the captured data in the
- packet. */
- break;
- }
cur_off += add_off;
}
if (ti != NULL)