Ethereal-dev: [ethereal-dev] Fixes to DNS and NBNS printing checked in

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: guy@xxxxxxxxxx (Guy Harris)
Date: Thu, 3 Dec 1998 22:02:16 -0800 (PST)
The things you discover when the capture file you're using to test
whether your changes to display and print the detailed breakdown of the
packet in a fixed-width font happens to be a DNS capture file....

Changed:

	packet-dns.c
	packet-nbns.c
	packet.c
	packet.h

The change is:

	When dissecting DNS or NBNS queries or replies, add the item to
	the tree for the queries or replies first, then create and add
	the subtree and populate it, and, when that's done, set the
	length of the item appropriately; if you add the subtree later,
	the subtree's top-level node appears to have level 0, rather
	than 1 greater than the tree of which it's a subtree, which
	causes those trees not to print correctly.