diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 1998-10-14 04:09:15 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 1998-10-14 04:09:15 +0000 |
commit | 4ef47e6cfb53cadbc9b8ccb7dab2177de485a43d (patch) | |
tree | 53103eec0a5de73a861d99f5fbc1e5ea27d07c2a /packet-ipx.c | |
parent | 23ab0b90bdafba629123e4074457641b14a24231 (diff) | |
download | wireshark-4ef47e6cfb53cadbc9b8ccb7dab2177de485a43d.tar.gz wireshark-4ef47e6cfb53cadbc9b8ccb7dab2177de485a43d.tar.bz2 wireshark-4ef47e6cfb53cadbc9b8ccb7dab2177de485a43d.zip |
Added preliminary support for NetBIOS Name Services over IPX and UDP. Note
that these are two very different implementations of NetBIOS name services and
at the protocol level are not similar. I have put the UDP protocol in
packet-nbns.c, since it will be a very big module. I have all of rfc 1002 to
read and implement. I am planning on putting many different NetBIOS over IPX
functions in packet-nbipx.c, however, since there is no RFC or published
standard. I have to hack the protocol, and as such, I do not expect it to be
as full-featured as the IP-world equivalents.
svn path=/trunk/; revision=50
Diffstat (limited to 'packet-ipx.c')
-rw-r--r-- | packet-ipx.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/packet-ipx.c b/packet-ipx.c index af28c58a15..ff5fd51ccc 100644 --- a/packet-ipx.c +++ b/packet-ipx.c @@ -2,7 +2,7 @@ * Routines for NetWare's IPX * Gilbert Ramirez <gram@verdict.uthscsa.edu> * - * $Id: packet-ipx.c,v 1.8 1998/10/02 22:14:29 gram Exp $ + * $Id: packet-ipx.c,v 1.9 1998/10/14 04:09:12 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@unicom.net> @@ -88,7 +88,7 @@ static struct port_info ports[] = { { 0x0451, dissect_ncp, "NCP" }, { 0x0452, dissect_sap, "SAP" }, { 0x0453, dissect_ipxrip, "RIP" }, - { 0x0455, NULL, "NetBIOS" }, + { 0x0455, dissect_nbipx, "NetBIOS" }, { 0x0456, NULL, "Diagnostic" }, { 0x0457, NULL, "Serialization" }, { 0x055d, NULL, "Attachmate Gateway" }, @@ -134,7 +134,7 @@ ipx_packet_type(u_char val) return "NCP"; } else if (val == 20) { - return "NetBIOS"; + return "NetBIOS Name Packet"; } else if (val >= 16 && val <= 31) { return "Experimental Protocol"; @@ -145,7 +145,7 @@ ipx_packet_type(u_char val) } gchar* -network_to_string(const guint8 *ad) +ipxnet_to_string(const guint8 *ad) { static gchar str[3][12]; static gchar *cur; @@ -173,8 +173,8 @@ dissect_ipx(const u_char *pd, int offset, frame_data *fd, GtkTree *tree) { void (*dissect) (const u_char *, int, frame_data *, GtkTree *); /* Calculate here for use in win_info[] and in tree */ - dnet = network_to_string((guint8*)&pd[offset+6]); - snet = network_to_string((guint8*)&pd[offset+18]); + dnet = ipxnet_to_string((guint8*)&pd[offset+6]); + snet = ipxnet_to_string((guint8*)&pd[offset+18]); dsocket = pntohs(&pd[offset+16]); if (fd->win_info[COL_NUM]) { @@ -224,7 +224,7 @@ dissect_ipx(const u_char *pd, int offset, frame_data *fd, GtkTree *tree) { break; case 20: /* NetBIOS */ - dissect_data(pd, offset, fd, tree); + dissect_nbipx(pd, offset, fd, tree); break; case 0: /* IPX, fall through to default */ @@ -369,14 +369,14 @@ dissect_ipxrip(const u_char *pd, int offset, frame_data *fd, GtkTree *tree) { if (operation == IPX_RIP_REQUEST - 1) { add_item_to_tree(rip_tree, cursor, 8, "Route Vector: %s, %d hop%s, %d tick%s", - network_to_string((guint8*)&route.network), + ipxnet_to_string((guint8*)&route.network), route.hops, route.hops == 1 ? "" : "s", route.ticks, route.ticks == 1 ? "" : "s"); } else { add_item_to_tree(rip_tree, cursor, 8, "Route Vector: %s, %d hop%s, %d tick%s (%d ms)", - network_to_string((guint8*)&route.network), + ipxnet_to_string((guint8*)&route.network), route.hops, route.hops == 1 ? "" : "s", route.ticks, route.ticks == 1 ? "" : "s", route.ticks * 1000 / 18); @@ -499,7 +499,7 @@ dissect_sap(const u_char *pd, int offset, frame_data *fd, GtkTree *tree) { add_item_to_tree(s_tree, cursor, 2, "Server Type: %s (0x%04X)", server_type(server.server_type), server.server_type); add_item_to_tree(s_tree, cursor+50, 4, "Network: %s", - network_to_string((guint8*)&pd[cursor+50])); + ipxnet_to_string((guint8*)&pd[cursor+50])); add_item_to_tree(s_tree, cursor+54, 6, "Node: %s", ether_to_str((guint8*)&pd[cursor+54])); add_item_to_tree(s_tree, cursor+60, 2, "Socket: %s (0x%04X)", |