aboutsummaryrefslogtreecommitdiffstats
path: root/packet.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-08-20 06:55:20 +0000
committerGuy Harris <guy@alum.mit.edu>1999-08-20 06:55:20 +0000
commita033390918ea00a11203f5ef869e14d0609e6b6f (patch)
treea3570575a12e5fb9a383c93391a544e5a1101233 /packet.c
parent57198bc28f3fd6e6f885f9fd2f0849ae937497a4 (diff)
Add support for reading Full Frontal ATM from an ATM Sniffer capture
file, instead of throwing out all but LANE or RFC 1483 data frames and pretending that the former are just Ethernet or Token-Ring frames. Add some level of decoding for ATM LANE, but not all of it; the rest, including decoding non-LANE frames, is left as an exercise for somebody who has captures they want to decode, an interest in decoding them, ATM expertise, and time.... svn path=/trunk/; revision=523
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/packet.c b/packet.c
index e86b174c74..de5d9a81d1 100644
--- a/packet.c
+++ b/packet.c
@@ -1,7 +1,7 @@
/* packet.c
* Routines for packet disassembly
*
- * $Id: packet.c,v 1.37 1999/08/18 00:57:54 guy Exp $
+ * $Id: packet.c,v 1.38 1999/08/20 06:55:05 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -655,13 +655,13 @@ dissect_packet(const u_char *pd, frame_data *fd, proto_tree *tree)
switch (fd->lnk_t) {
case WTAP_ENCAP_ETHERNET :
- dissect_eth(pd, fd, tree);
+ dissect_eth(pd, 0, fd, tree);
break;
case WTAP_ENCAP_FDDI :
dissect_fddi(pd, fd, tree);
break;
case WTAP_ENCAP_TR :
- dissect_tr(pd, fd, tree);
+ dissect_tr(pd, 0, fd, tree);
break;
case WTAP_ENCAP_NONE :
dissect_null(pd, fd, tree);
@@ -678,6 +678,9 @@ dissect_packet(const u_char *pd, frame_data *fd, proto_tree *tree)
case WTAP_ENCAP_LINUX_ATM_CLIP :
dissect_clip(pd, fd, tree);
break;
+ case WTAP_ENCAP_ATM_SNIFFER :
+ dissect_atm(pd, fd, tree);
+ break;
}
}