summaryrefslogtreecommitdiff
path: root/packet_states.h
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2009-07-16 22:22:05 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2009-07-16 22:22:05 +0000
commit5c69efcfba3dc218526cac5ce1d22a4832a8695b (patch)
treee4eccea86cc543f10c3e781f5af58f106f7d023c /packet_states.h
parentb7dd74582b7c7d6676e01653e2e1c6b7ae7ace6c (diff)
downloadgpsd-5c69efcfba3dc218526cac5ce1d22a4832a8695b.tar.gz
Make the oncore sniffer use the known lengths of packets.
This guards against finding 0x0d 0x0a somewhere in the payload. It can happen, and does happen often enough to be annoying. From Hakan Johansson on gpsd-dev
Diffstat (limited to 'packet_states.h')
-rw-r--r--packet_states.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/packet_states.h b/packet_states.h
index 72a57fa6..99845b51 100644
--- a/packet_states.h
+++ b/packet_states.h
@@ -126,12 +126,12 @@
#endif
#ifdef ONCORE_ENABLE
- ONCORE_AT2, /* second @ */
- ONCORE_ID1, /* first character of command type */
- ONCORE_ID2, /* second character of command type */
- ONCORE_PAYLOAD,
- ONCORE_CR, /* closing CR */
- ONCORE_RECOGNIZED, /* closing LF */
+ ONCORE_AT2, /* second @ */
+ ONCORE_ID1, /* first character of command type */
+ ONCORE_PAYLOAD, /* payload eating */
+ ONCORE_CHECKSUM, /* checksum byte */
+ ONCORE_CR, /* closing CR */
+ ONCORE_RECOGNIZED, /* closing LF */
#endif