aboutsummaryrefslogtreecommitdiffstats
path: root/packet-atm.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-11-18 07:29:55 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-11-18 07:29:55 +0000
commit2d63e033588792b407557b7bd2f8b75eed547d9d (patch)
tree5b144c6ccc5d74f435599b47de04d6c68abbb2aa /packet-atm.c
parent0a54cb65c55f89e3763a9c37c0837ba4aa6c03a2 (diff)
ILMI is just SNMP-over-ATM AAL5; if the SNMP dissector is available,
dissect ILMI packets with the SNMP dissector. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1054 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-atm.c')
-rw-r--r--packet-atm.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/packet-atm.c b/packet-atm.c
index fac63cb2cc..cdc6ed5581 100644
--- a/packet-atm.c
+++ b/packet-atm.c
@@ -1,7 +1,7 @@
/* packet-atm.c
* Routines for ATM packet disassembly
*
- * $Id: packet-atm.c,v 1.2 1999/11/16 11:42:25 guy Exp $
+ * $Id: packet-atm.c,v 1.3 1999/11/18 07:29:54 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -36,14 +36,18 @@
#include "packet.h"
#include "resolv.h"
+#include "packet-snmp.h"
+
static int proto_atm = -1;
static int proto_atm_lane = -1;
+static int proto_ilmi = -1;
static gint ett_atm = -1;
static gint ett_atm_lane = -1;
static gint ett_atm_lane_lc_lan_dest = -1;
static gint ett_atm_lane_lc_lan_dest_rd = -1;
static gint ett_atm_lane_lc_flags = -1;
+static gint ett_ilmi = -1;
/*
* See
@@ -529,6 +533,12 @@ dissect_atm(const u_char *pd, frame_data *fd, proto_tree *tree)
dissect_lane(pd, offset, fd, tree);
break;
+#if defined(HAVE_UCD_SNMP_SNMP_H) || defined(HAVE_SNMP_SNMP_H)
+ case ATT_HL_ILMI:
+ dissect_snmp_pdu(pd, offset, fd, tree, "ILMI", proto_ilmi, ett_ilmi);
+ break;
+#endif
+
default:
if (tree) {
/* Dump it as raw data. */
@@ -553,8 +563,10 @@ proto_register_atm(void)
&ett_atm_lane_lc_lan_dest,
&ett_atm_lane_lc_lan_dest_rd,
&ett_atm_lane_lc_flags,
+ &ett_ilmi,
};
proto_atm = proto_register_protocol("ATM", "atm");
proto_atm_lane = proto_register_protocol("ATM LANE", "lane");
+ proto_ilmi = proto_register_protocol("ILMI", "ilmi");
proto_register_subtree_array(ett, array_length(ett));
}