Ethereal-dev: Re: [Ethereal-dev] Modification to packet-tns.c

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

From: Bernd Becker <bb@xxxxxxxxxxxxxxx>
Date: Tue, 04 Feb 2003 22:26:08 +0100
Guy Harris wrote:

On Tue, Feb 04, 2003 at 05:00:20PM +0100, Bernd Becker wrote:
The attached capture shows a REDIRECT packet with a capture length
of 118 bytes, where the port number was truncated and would be
interpreted as 104 instead of 1047.

It also has a HOST= item; should the redirection handler use that rather
than the source address of the redirect when creating a conversation?
The problem is that normally the host item contains the host name and not the IP address. In my example it contained the IP address because I used fixed IP adresses in my Oracle setup. We could check the HOST item and use it if it is an IP address. A name lookup is propbably not worth the effort and would not work in most cases (e.g. ethereal running in a different setup). I think the normal case (at least for small/medium installations) is for the TNS-Listener to redirect to another port on the same server and David's patch is enough for that.
I will check some more captures tomorrow.
Bernd