diff options
author | Chris Kuethe <chris.kuethe@gmail.com> | 2006-11-26 07:11:27 +0000 |
---|---|---|
committer | Chris Kuethe <chris.kuethe@gmail.com> | 2006-11-26 07:11:27 +0000 |
commit | 39cebecb357e50a97a7fa6d8971fee078f5d67e9 (patch) | |
tree | 20be5177b7897a687dd7091a50deb0e43d0a701b /packet.c | |
parent | 3f1e862ca593c413e4f2beb5241360662a5aad99 (diff) | |
download | gpsd-39cebecb357e50a97a7fa6d8971fee078f5d67e9.tar.gz |
allow TSIP "super-packets"
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -765,7 +765,7 @@ ssize_t packet_parse(struct gps_device_t *session, size_t fix) if (session->inbuffer[n++] != DLE) goto not_tsip; pkt_id = session->inbuffer[n++]; /* packet ID */ - if ((0x41 > pkt_id) || (0x84 < pkt_id)) + if ((0x41 > pkt_id) || (0x8f < pkt_id)) goto not_tsip; for ( len = 0; n < packetlen; len++ ) { if (session->inbuffer[n++] == DLE) { @@ -801,6 +801,8 @@ ssize_t packet_parse(struct gps_device_t *session, size_t fix) /* pass */; else if ((0x82 == pkt_id) && (0x03 == len)) /* pass */; + else if ((0x8f == pkt_id)) + /* pass */; else { gpsd_report(LOG_IO, "TSIP REJECT pkt_id = %#02x, n= %#02x, len= %#02x\n", |