Ethereal-dev: Re: [ethereal-dev] non-standard UDP ports for standard protocolls ???

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

From: "Gilbert Ramirez Jr." <gram@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 11 Jan 1999 10:39:36 -0600 (CST)
As Hannes R. Boehm said:
> 
> 
> Hi,
> 
> I just captured a new packet type which is not yet supported by
> ethereal:
> 
> RADIUS - (Remote Athentication for Dial In User Service)
> 
> the problem is:
> 
> Many radius implementations do not use the
> standard UDP port (1812 (formely: 1645)) but nonstandarized ports.
> 
> What should we do with those packets ?

Perhaps in dissect_udp() and dissect_tcp(), if the port is not hard-coded
into ethereal, a lookup into /etc/services can be made. We would have to
construct a table of port numbers and dissect-functions in ethereal.  I am
assuming that you have your non-standard UDP port labelled in your local
/etc/services file.

Using this approach, we could get rid of the hard-coded UDP ports in
packet.h

--gilbert


-- 
Gilbert Ramirez                Voice:  +1 210 358 4032
Technical Services             Fax:    +1 210 358 1122
University Health System       San Antonio, Texas, USA