diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-09-22 13:46:38 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-09-22 13:46:38 -0400 |
commit | 1893cab3e46aad8fc23a15466b9ce8d505c719d0 (patch) | |
tree | 8cdd939bfefe9efef686e92f07e2999ae271b7c1 /packet.c | |
parent | a1c59d064210c1d0f61e91567eb49c949db1924a (diff) | |
download | gpsd-1893cab3e46aad8fc23a15466b9ce8d505c719d0.tar.gz |
More TSIP packet cleanup. All regression tests pass.
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -1727,17 +1727,20 @@ void packet_parse(struct gps_packet_t *lexer) else if ((0x5c == pkt_id) && ((0x1c <= packetlen) && (0x1e >= packetlen))) /* pass */ ; - /* Not in [TSIP] */ else if (TSIP_ID_AND_LENGTH(0x5e, 2)) /* pass */ ; - else if ((0x5f == pkt_id) && (70 == packetlen)) + /* + * Not in [TSIP]. It's unclear where this test came from or + * why it's here; the TSIP driver doesn't use type 0x5f. + */ + else if (TSIP_ID_AND_LENGTH(0x5f, 66)) /* pass */ ; else if ((0x6d == pkt_id) && ((0x14 <= packetlen) && (0x20 >= packetlen))) /* pass */ ; - else if ((0x82 == pkt_id) && (0x05 == packetlen)) + else if (TSIP_ID_AND_LENGTH(0x82, 1)) /* pass */ ; - else if (0x83 == pkt_id) + else if (TSIP_ID_AND_LENGTH(0x83, 36)) /* pass */ ; else if ((0x84 == pkt_id) && ((0x28 <= packetlen) && (0x29 >= packetlen))) |