summaryrefslogtreecommitdiff
path: root/packet-ipx.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1998-09-27 03:43:44 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1998-09-27 03:43:44 +0000
commit5845ab82ab8a0281f0853dca00409878423dddb5 (patch)
tree9a7f20be21fed1e04ab3f00bcb1ff58f29efd979 /packet-ipx.c
parentb9fb164099562ed82e65f978da6ea2de9a729d2e (diff)
downloadwireshark-5845ab82ab8a0281f0853dca00409878423dddb5.tar.gz
I added the Server Down SAP packet after discovering its description
in a book today. svn path=/trunk/; revision=29
Diffstat (limited to 'packet-ipx.c')
-rw-r--r--packet-ipx.c25
1 files changed, 21 insertions, 4 deletions
diff --git a/packet-ipx.c b/packet-ipx.c
index fbdc355750..c8b0160848 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.5 1998/09/24 04:22:07 gram Exp $
+ * $Id: packet-ipx.c,v 1.6 1998/09/27 03:43:44 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@unicom.net>
@@ -325,6 +325,11 @@ dissect_spx(const u_char *pd, int offset, frame_data *fd, GtkTree *tree) {
/* ================================================================= */
/* IPX RIP */
/* ================================================================= */
+/* I don't do NLSP in packet-ipx.c because we don't use Netware Link State
+ * Protocol at work, so I can't debug any ethereal code I write for it. If you
+ * can supply me a tcpdump output file showing NLSP packets, I'll gladly
+ * create dissect_ipxnlsp(). -- gram@verdict.uthscsa.edu
+ */
static void
dissect_ipxrip(const u_char *pd, int offset, frame_data *fd, GtkTree *tree) {
@@ -491,9 +496,21 @@ dissect_sap(const u_char *pd, int offset, frame_data *fd, GtkTree *tree) {
ether_to_str((guint8*)&pd[cursor+54]));
add_item_to_tree(s_tree, cursor+60, 2, "Socket: %s (0x%04X)",
port_text(server.server_port), server.server_port);
- add_item_to_tree(s_tree, cursor+62, 2,
- "Intermediate Networks: %d",
- server.intermediate_network);
+
+ /* A hop-count of 16 is unreachable. This type of packet
+ * is the Server Down notification produced when a server
+ * is brought down gracefully.
+ */
+ if (server.intermediate_network >= 16) {
+ add_item_to_tree(s_tree, cursor+62, 2,
+ "Intermediate Networks: %d (Unreachable)",
+ server.intermediate_network);
+ }
+ else {
+ add_item_to_tree(s_tree, cursor+62, 2,
+ "Intermediate Networks: %d",
+ server.intermediate_network);
+ }
}
}
else { /* queries */