summaryrefslogtreecommitdiff
path: root/packet_test.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2008-06-30 21:12:15 +0000
committerEric S. Raymond <esr@thyrsus.com>2008-06-30 21:12:15 +0000
commitf13358016c59bc91b5b0753554ccc1d535160d62 (patch)
tree27adb56efdb73676f3f4ba2be50d82a6478b0ddc /packet_test.c
parent3e65578fd5a3a5ae334bd4916a92ca4d3dab98cd (diff)
downloadgpsd-f13358016c59bc91b5b0753554ccc1d535160d62.tar.gz
Add a CRC-24Q implementation. It's wrong, but it's a start.
Diffstat (limited to 'packet_test.c')
-rw-r--r--packet_test.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/packet_test.c b/packet_test.c
index b2be347b..9576a902 100644
--- a/packet_test.c
+++ b/packet_test.c
@@ -216,6 +216,18 @@ static struct map tests[] = {
.garbage_offset = 0,
.type = RTCM3_PACKET,
},
+ {
+ .legend = "RTCM104V3 type 1005 packet with 4th byte garbled",
+ .test = {
+ 0xD3, 0x00, 0x13, 0x3F, 0xD7, 0xD3, 0x02, 0x02,
+ 0x98, 0x0E, 0xDE, 0xEF, 0x34, 0xB4, 0xBD, 0x62,
+ 0xAC, 0x09, 0x41, 0x98, 0x6F, 0x33, 0x36, 0x0B,
+ 0x98,
+ },
+ .testlen = 25,
+ .garbage_offset = 0,
+ .type = BAD_PACKET,
+ },
};
/*@ +initallelements -charint +usedef @*/