Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal packet-ipx.c packet.c packet.h resolv.c

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

From: "Gilbert Ramirez Jr." <gram@xxxxxxxxxxxx>
Date: Fri, 19 Nov 1999 23:35:21 -0600 (CST)
gram        1999/11/19 23:35:19 CST

  Modified files:
    .                    packet-ipx.c packet.c packet.h resolv.c 
                         resolv.h 
  Log:
  Enable ether name resolution for packet summary lines of IPX packets
  (in the src/dst of the CList). In order to do this, I had to:
  
  1. Add a new function, ether_to_str_punct(const guint8*, char) which
  	turns a 6-byt ether address into a string, using whatever punctuation
  	is passed as the char. If a null char is passed, no separator
  	is put between the hex digits. Unresolved IPX addresses look better
  	with the ether portion having no punctuation (IMHO)
  
  2. Changed ether_to_str() to call ether_to_str_punct with ':' as the char
  	argument. That is, code abstraction.
  
  3. MAXNAMELEN was moved from resolv.c to resolv.h so that packet-ipx.c
  	could see it.
  
  4. A new resolve function, get_ether_name_if_known(), returns the resolved name
  	of an ether address, or NULL if there is none.  This differs
  	from get_ether_name() by returning NULL rather than a text version
  	of the ether address.
  
  Revision  Changes    Path
  1.34      +18 -5     ethereal/packet-ipx.c
  1.56      +17 -3     ethereal/packet.c
  1.147     +2 -1      ethereal/packet.h
  1.18      +96 -30    ethereal/resolv.c
  1.10      +8 -1      ethereal/resolv.h