aboutsummaryrefslogtreecommitdiffstats
path: root/packet-atm.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-12-05 02:33:52 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-12-05 02:33:52 +0000
commit51f7548633cfd50fb880e63ca78a7eef543b2557 (patch)
tree66ae6e94421c0f56ef1a9cdde6aeda640a074a4e /packet-atm.c
parent64ef5c1e7b02a39657e9af55a7963787b42f255c (diff)
As per Nathan Leulinger's suggestion, have a stub SNMP dissector if
there are no SNMP libraries to use in a real dissector; this means that other dissectors don't have to care if there are SNMP libraries, they can just call "dissect_snmp()" - and this also simplifies "Makefile.am" and "configure.in" a bit, as they just treat "packet-snmp.c" and "packet-snmp.h" the same way they treat other dissector source files. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1214 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-atm.c')
-rw-r--r--packet-atm.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/packet-atm.c b/packet-atm.c
index b69ccbf2ee..7d4a6f48e6 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.9 1999/11/27 06:17:23 guy Exp $
+ * $Id: packet-atm.c,v 1.10 1999/12/05 02:32:41 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -36,26 +36,20 @@
#include "packet.h"
#include "resolv.h"
-#if defined(HAVE_UCD_SNMP_SNMP_H) || defined(HAVE_SNMP_SNMP_H)
#include "packet-snmp.h"
-#endif
static int proto_atm = -1;
static int hf_atm_vpi = -1;
static int hf_atm_vci = -1;
static int proto_atm_lane = -1;
-#if defined(HAVE_UCD_SNMP_SNMP_H) || defined(HAVE_SNMP_SNMP_H)
static int proto_ilmi = -1;
-#endif
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;
-#if defined(HAVE_UCD_SNMP_SNMP_H) || defined(HAVE_SNMP_SNMP_H)
static gint ett_ilmi = -1;
-#endif
/*
* See
@@ -663,11 +657,9 @@ 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) {
@@ -701,9 +693,7 @@ proto_register_atm(void)
};
static gint *ett[] = {
&ett_atm,
-#if defined(HAVE_UCD_SNMP_SNMP_H) || defined(HAVE_SNMP_SNMP_H)
&ett_ilmi,
-#endif
&ett_atm_lane,
&ett_atm_lane_lc_lan_dest,
&ett_atm_lane_lc_lan_dest_rd,
@@ -711,9 +701,7 @@ proto_register_atm(void)
};
proto_atm = proto_register_protocol("ATM", "atm");
proto_register_field_array(proto_atm, hf, array_length(hf));
-#if defined(HAVE_UCD_SNMP_SNMP_H) || defined(HAVE_SNMP_SNMP_H)
proto_ilmi = proto_register_protocol("ILMI", "ilmi");
-#endif
proto_atm_lane = proto_register_protocol("ATM LANE", "lane");
proto_register_subtree_array(ett, array_length(ett));
}