aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2006-09-28 20:28:26 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2006-09-28 20:28:26 +0000
commit81d8db97051285b7d98552b6b99126a9b9be4705 (patch)
treeebfa33d994932cd7942d23774ff7b48deb4a0e23 /wiretap
parent160acf9d903aa52bc676779a857c7edcee0c63ba (diff)
From Rolf Fiedler:
I am the author of the eyesdn wiretap module. Recently we added ATM support to our trace format. We used channel id 129 for that, so far only 0 for D channel and 1-30 for bearer channels had been in use. svn path=/trunk/; revision=19353
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/eyesdn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/eyesdn.c b/wiretap/eyesdn.c
index 6c47523d2c..7835625941 100644
--- a/wiretap/eyesdn.c
+++ b/wiretap/eyesdn.c
@@ -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 (0 for D channel, 1-30 for B1-B30)
+ * - Byte 8: channel (0 for D channel, 1-30 for B1-B30, 129 for ATM)
* - Byte 9: Sender (0 NT, 1 TE)
* - Byte 10-11: frame size in bytes
* - Byte 12-n: Frame Payload
@@ -260,7 +260,7 @@ parse_eyesdn_rec_hdr(wtap *wth, FILE_T fh,
pkt_len = (pkt_len << 8) | ((unsigned long) hdr[11]);
/* sanity checks */
- if(channel>30) {
+ if((channel>30)&&(channel!=129)) {
*err = WTAP_ERR_BAD_RECORD;
*err_info = g_strdup_printf("eyesdn: bad channel number %u",
channel);