summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorhm <hm@FreeBSD.org>2000-10-26 06:31:18 +0000
committerhm <hm@FreeBSD.org>2000-10-26 06:31:18 +0000
commitc6fdad3835149fb2827d53cbe43a270167f6cd6c (patch)
tree9a31bb55caaa5556cc6e18f200a19228b7893224 /sys
parentff0491cd04727af1c311703f7e07f1692401bb6f (diff)
downloadFreeBSD-src-c6fdad3835149fb2827d53cbe43a270167f6cd6c.zip
FreeBSD-src-c6fdad3835149fb2827d53cbe43a270167f6cd6c.tar.gz
Make the software HDLC decoder work again.
Submitted by: Hans Petter Selasky <hselasky@c2i.net>
Diffstat (limited to 'sys')
-rw-r--r--sys/i4b/layer1/i4b_hdlc.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/i4b/layer1/i4b_hdlc.h b/sys/i4b/layer1/i4b_hdlc.h
index ebd48c1..1b56ce5 100644
--- a/sys/i4b/layer1/i4b_hdlc.h
+++ b/sys/i4b/layer1/i4b_hdlc.h
@@ -31,7 +31,7 @@
*
* $FreeBSD$
*
- * last edit-date: [Wed Jul 19 09:41:13 2000]
+ * last edit-date: [Thu Oct 26 08:29:06 2000]
*
* NOTE:
* - October 19th: made minor changes to HDLC_ENCODE macro
@@ -329,10 +329,12 @@ const u_short HDLC_BIT_TAB[256] = { 0x0100,
goto j1##d; /* first byte */ \
} \
case 4: /* CRC (lsb's) */ \
- crc ^= -1; \
- case 5: /* CRC (msb's) */ \
+ crc ^= -1; \
tmp2 = (u_char)crc; \
crc >>= 8; \
+ goto j2##d; \
+ case 5: /* CRC (msb's) */ \
+ tmp2 = (u_char)crc; \
flag = 1; \
goto j2##d; /* CRC stuff */ \
} \
OpenPOWER on IntegriCloud