Ethereal-dev: Re: [Ethereal-dev] How to add a subprotocol?

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

From: Brian Wellington <bwelling@xxxxxxxxx>
Date: Thu, 12 Oct 2000 18:39:12 -0700 (PDT)
On Thu, 12 Oct 2000, Guy Harris wrote:

> Your example sounds more like, for example, the different types of DNS
> messages, rather than DNS vs. SNMP vs. RADIUS vs. NetBIOS Name
> Service etc.; the DNS dissector doesn't treat each request type as a
> different protocol, using "dissector_add()" to register dissectors for
> each protocol type.

I'm not sure if I agree with this example.  The DNS dissector doesn't
distinguish between different DNS opcodes (query, update, notify) too
well, and thus doesn't properly handle the differences between them.  I'm
not suggesting using multiple dissectors for DNS (or in this case), but I
also wouldn't blindly copy the DNS way too much, since it doesn't go far
enough.

Speaking of which, I'm going to attempt a thorough overhaul of the DNS
code next week.  We'll see how far I get :)

Brian