Ethereal-dev: Re: [ethereal-dev] rlogin dissector

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

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Mon, 10 Apr 2000 11:02:46 -0700
> >I.e., the moral equivalent of "ethertype()", but to allow arbitrary
> >dissectors to switch on TCP or UDP ports rather than on Ethernet type?
> 
> The socks protocol needs to call the TCP sub-dissectors but the packet
> doesn't 
> have any TCP header information; so I can't just call the dissect_tcp
> routine.

Which is more or less the same thing that "ethertype()" provides -
"ethertype()" lets you switch on an Ethernet type even if that type
field isn't part of an Ethernet header, and your routines let you switch
on a TCP or UDP port number even if it's not part of a TCP or UDP
header.