diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-11-18 08:50:37 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-11-18 08:50:37 +0000 |
commit | 32e13732c06027d598869eeb5f87807af2095505 (patch) | |
tree | 60b0c10b31a277ec35a4f429493a26fdf48a77fe /packet-atm.c | |
parent | d6a877f3c5538c89e715808ca5e0bd29bcb970ae (diff) | |
download | wireshark-32e13732c06027d598869eeb5f87807af2095505.tar.gz wireshark-32e13732c06027d598869eeb5f87807af2095505.tar.bz2 wireshark-32e13732c06027d598869eeb5f87807af2095505.zip |
Check in my work so far on enabling the ATM iptrace capability. Not
all packets are recognized yet, but ILMI and Classical IP (LLCMX) are.
The ATM iptrace facility uses the ngsniffer_atm_phdr pseudo header so that
ethereal doesn't have to worry about yet another psuedo header.
svn path=/trunk/; revision=1057
Diffstat (limited to 'packet-atm.c')
-rw-r--r-- | packet-atm.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/packet-atm.c b/packet-atm.c index 6811b5f432..80061f5805 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.4 1999/11/18 08:28:30 guy Exp $ + * $Id: packet-atm.c,v 1.5 1999/11/18 08:50:18 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -424,7 +424,7 @@ dissect_atm(const u_char *pd, frame_data *fd, proto_tree *tree) guint hl_type; aal_type = fd->pseudo_header.ngsniffer_atm.AppTrafType & ATT_AALTYPE; - hl_type = fd->pseudo_header.ngsniffer_atm.AppTrafType & ATT_HLTYPE; + hl_type = fd->pseudo_header.ngsniffer_atm.AppHLType & ATT_HLTYPE; if (check_col(fd, COL_PROTOCOL)) col_add_str(fd, COL_PROTOCOL, "ATM"); @@ -473,6 +473,10 @@ dissect_atm(const u_char *pd, frame_data *fd, proto_tree *tree) if (aal_type == ATT_AAL5) { switch (hl_type) { + case ATT_HL_LLCMX: + proto_tree_add_text(atm_tree, 0, 0, "LLC multiplexed traffic"); + break; + case ATT_HL_VCMX: proto_tree_add_text(atm_tree, 0, 0, "VC multiplexed traffic type: %s", val_to_str(fd->pseudo_header.ngsniffer_atm.AppHLType, @@ -529,11 +533,12 @@ dissect_atm(const u_char *pd, frame_data *fd, proto_tree *tree) if (aal_type == ATT_AAL5) { switch (hl_type) { -#if 0 case ATT_HL_LLCMX: /* Dissect as WTAP_ENCAP_ATM_RFC1483 */ + /* The ATM iptrace capture that we have hows LLC at this point, + * so that's what I'm calling */ + dissect_llc(pd, offset, fd, tree); break; -#endif case ATT_HL_LANE: dissect_lane(pd, offset, fd, tree); |