From 78becd29673053cb598763bebe5d6dda7ba367f9 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 2 Apr 2004 07:40:37 +0000 Subject: From Rolf Fiedler: fix a comment, and fix the code to get the packet length. svn path=/trunk/; revision=10541 --- wiretap/eyesdn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'wiretap/eyesdn.c') diff --git a/wiretap/eyesdn.c b/wiretap/eyesdn.c index df82cc26aa..7320d8edff 100644 --- a/wiretap/eyesdn.c +++ b/wiretap/eyesdn.c @@ -1,6 +1,6 @@ /* eyesdn.c * - * $Id: eyesdn.c,v 1.7 2004/03/23 00:17:50 guy Exp $ + * $Id: eyesdn.c,v 1.8 2004/04/02 07:40:37 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez @@ -43,7 +43,7 @@ * Each Frame starts with the 0xff Flag byte * - Bytes 0-2: timestamp (long usec in network byte order) * - Bytes 3-7: timestamp (40bits sec since 1970 in network byte order) - * - Byte 8: channel (0d for D channel, 0e for e channel, b1-ce for B1-B30) + * - Byte 8: channel (0 for D channel, 1-30 for B1-B30) * - Byte 9: Sender (0 NT, 1 TE) * - Byte 10-11: frame size in bytes * - Byte 12-n: Frame Payload @@ -255,7 +255,7 @@ parse_eyesdn_rec_hdr(wtap *wth, FILE_T fh, channel = hdr[8]; direction = hdr[9]; - pkt_len = ((unsigned long) hdr[10]) << 8; + pkt_len = ((unsigned long) hdr[10]); pkt_len = (pkt_len << 8) | ((unsigned long) hdr[11]); /* sanity checks */ -- cgit v1.2.3