diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-11-18 07:29:55 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-11-18 07:29:55 +0000 |
commit | f5831f290a48c571f356c035f7dba09fb6ffe408 (patch) | |
tree | 5b144c6ccc5d74f435599b47de04d6c68abbb2aa /packet-atm.c | |
parent | 95d752b46655234a81467d6ef6e3324c80db68d5 (diff) | |
download | wireshark-f5831f290a48c571f356c035f7dba09fb6ffe408.tar.gz wireshark-f5831f290a48c571f356c035f7dba09fb6ffe408.tar.bz2 wireshark-f5831f290a48c571f356c035f7dba09fb6ffe408.zip |
ILMI is just SNMP-over-ATM AAL5; if the SNMP dissector is available,
dissect ILMI packets with the SNMP dissector.
svn path=/trunk/; revision=1054
Diffstat (limited to 'packet-atm.c')
-rw-r--r-- | packet-atm.c | 14 |
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)); } |