aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/atm.c
diff options
context:
space:
mode:
Diffstat (limited to 'wiretap/atm.c')
-rw-r--r--wiretap/atm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/wiretap/atm.c b/wiretap/atm.c
index 1e7ced15d0..7882e73898 100644
--- a/wiretap/atm.c
+++ b/wiretap/atm.c
@@ -81,11 +81,11 @@ atm_guess_traffic_type(const guint8 *pd, guint32 len,
* multiplexed RFC 1483 traffic.
*/
pseudo_header->atm.type = TRAF_LLCMX;
- } else if (pseudo_header->atm.aal5t_len < 14) {
+ } else if (len < 16) {
/*
- * As this cannot be an ethernet frame
- * (less than 14 bytes) we can try it
- * as a SSCOP frame
+ * As this cannot be a LANE Ethernet frame (less
+ * than 2 bytes of LANE header + 14 bytes of
+ * Ethernet header) we can try it as a SSCOP frame.
*/
pseudo_header->atm.aal = AAL_SIGNALLING;
} else if (pd[0] == 0x83 || pd[0] == 0x81) {