diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-11-20 05:35:15 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-11-20 05:35:15 +0000 |
commit | 2da6ff3be5d6c0fa312550e238049707b28c0777 (patch) | |
tree | b2d621b197a4d1522118d4a4e43906ede7c7b3c5 /packet.h | |
parent | 2f996a14984f2114256f3e31986a5a2f1a49753a (diff) | |
download | wireshark-2da6ff3be5d6c0fa312550e238049707b28c0777.tar.gz wireshark-2da6ff3be5d6c0fa312550e238049707b28c0777.tar.bz2 wireshark-2da6ff3be5d6c0fa312550e238049707b28c0777.zip |
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.
svn path=/trunk/; revision=1076
Diffstat (limited to 'packet.h')
-rw-r--r-- | packet.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,7 +1,7 @@ /* packet.h * Definitions for packet disassembly structures and routines * - * $Id: packet.h,v 1.146 1999/11/19 09:55:38 guy Exp $ + * $Id: packet.h,v 1.147 1999/11/20 05:35:14 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -208,6 +208,7 @@ typedef struct tcp_extra_data { /* Utility routines used by packet*.c */ gchar* ether_to_str(const guint8 *); +gchar* ether_to_str_punct(const guint8 *, char); gchar* ip_to_str(const guint8 *); struct e_in6_addr; gchar* ip6_to_str(struct e_in6_addr *); |