summaryrefslogtreecommitdiff
path: root/packet.c
Commit message (Collapse)AuthorAgeFilesLines
* Zero Coverity defects!Eric S. Raymond2012-05-131-2/+2
|
* Still working on pacifying Coverity. All regression tests pass.Eric S. Raymond2012-05-111-1/+2
|
* Pacify Coverity some more.Eric S. Raymond2012-05-111-0/+1
|
* Add new NMEA talker ID (WI, HC and TI)Christian Gagneraud2012-04-211-0/+27
| | | | | | | | | | | WI: Weather instrument HC: Heading, magnetic compass TI: Turn rate indicator Asssociated NMEA sentences: WIMDA, WIMWD, WIMWV, WIVWR, WIVWT, TIROT, HCHDG, HCHDT Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Added support for SDDBT sentences from a depth sounder.Eric S. Raymond2012-03-091-0/+9
| | | | All regression tests pass, including the new one for the sounder.
* splint cleanup.Eric S. Raymond2011-09-221-1/+1
|
* Cycle-start detection by timing works on a SiRF at 9600bps.Eric S. Raymond2011-09-211-0/+3
| | | | All regression tests pass.
* Additional explanation.Eric S. Raymond2011-09-081-3/+7
|
* Update list of recognized talker prefixes.Eric S. Raymond2011-09-081-2/+3
|
* Enable packet sniffer to recognize ECDIS NMEA packets with $EC leader.Eric S. Raymond2011-09-081-0/+9
| | | | This was a user feature request. All regression tests pass.
* Typo fixes and scan-build cleanup.Eric S. Raymond2011-08-111-1/+1
|
* Make JSON support a full driver to avoid a crash bug in gpsmon.Eric S. Raymond2011-06-201-1/+6
| | | | All regression tests pass.
* Improve the code for making sensor data and command strings visible...Eric S. Raymond2011-06-171-4/+4
| | | | | ...and remove some const declarations that could have spelled trouble in the future.
* Elimination of gpsd_hexdump_level.Eric S. Raymond2011-06-171-17/+17
| | | | The few gpsd_hexdump() calls left have explicit guards.
* Remove more duplicative logging. All regression tests pass.Eric S. Raymond2011-06-171-11/+2
|
* Cut down on gpsd_hexdump_wrapper() calls.Eric S. Raymond2011-06-171-3/+0
| | | | | | | | | | | | | | | This awkward construct seems to have triggered some sort of toolchain bug. The symptom is that gpsd_hexdump_level has different values depending on whether we test it inside or outside of hex.c. As a first step towards eliminating this global, we throw out a bunch of hex logging that is duplicative or not really needed for production drivers. Experimental drivers can call the hex dumper unconditionally. The goal is to reduce the number of uses of this variable to eliminate it withoud doing violence to the internal APIs. This is a first step. All regression tests pass.
* First xut at JSON passthrough code.Eric S. Raymond2011-06-141-0/+112
| | | | Not turned in by default yet; it interferes with RTCM2 decoding.
* Clean up more scan-build warnings, from the raw logs this time.Eric S. Raymond2011-03-301-2/+2
|
* scan-build and splint cleanup. All regression tests pass.Eric S. Raymond2011-03-291-8/+9
|
* Drop scope of a couple of garmin-only parametersJon Schlueter2011-03-221-2/+3
|
* More fossil #ifdef removal. All regression tests pass.Eric S. Raymond2011-03-041-14/+0
|
* Sniffer wasn't going to ground state properly afer an RTCM3 packet.Eric S. Raymond2011-03-021-3/+2
| | | | All regression tests pass.
* Add explanatory comments.Eric S. Raymond2011-03-011-0/+2
|
* Hide something that doesn't have to be globally visible.Eric S. Raymond2011-02-281-57/+58
|
* Reverse an earlier error, and harden RTCM2 decoding a bit.Eric S. Raymond2011-02-261-21/+41
| | | | All regression tests pass.
* Make sure ISGPS packets are available raw in the output buffer.Eric S. Raymond2011-02-261-2/+12
| | | | All regression tests pass.
* Match debug levels passed into gpsd_hexdump_wrapper with gpsd_report() calls.Jon Schlueter2011-02-261-4/+4
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Avoid any possibility of rejecting a $PASHR due to bad checksum.Eric S. Raymond2011-02-231-31/+40
| | | | | | | This is an attempt to attack Greg Troxel's regression-test failure on i386 under NetBSD, which involves $PASHRs, All regresssion tests pass.
* More deheader testing. All regressions pass, codebase splints clean.Eric S. Raymond2011-01-131-1/+2
|
* Rename the bits.h macros to be explicit about operand length.Eric S. Raymond2010-12-261-2/+2
| | | | | | With most machines being 64-bit now, the assumption that "word" = 16 bits and "long" = 32 bits is increasingly archaic. This commit removes it from our naming conventions.
* sizeof(long) doesn't always equal 4Chris Kuethe2010-12-251-1/+1
| | | | | in particular, it's 8 on my amd64. really, this loop intends to consume 4 bytes at a time, not sizeof(long), so use the constant 4.
* Experimentally revert ckuethe's change to not accept comment packets...Eric S. Raymond2010-12-251-2/+2
| | | | ...because it's worth checking if that solve Greg Troxel's problem.
* More fixes for the packet snifferChris Kuethe2010-12-241-6/+3
| | | | | | | | | | | | | - Revert my previous diff to ignore comments - When we leave the COMMENT_BODY state, push the character back into the stream so that the sniffer can use it to detect a real packet, eg. a 0xa0 byte that causes the state machine to leave COMMENT_BODY is also eligible to be used as SIRF_LEADER_1 - When comment packets are recognized, simply discard them. Calling the accept function on a comment makes gpsd think that real packets are coming in from that source. DO NOT WANT!
* disable detection of comment packetsChris Kuethe2010-12-241-1/+6
| | | | | it breaks detection of my binary/38400 SiRF receiver. The sniffer gets starts detecting COMMENT_BODY characters and never recovers
* Total splint cleanup. All regressionm tests pass.Eric S. Raymond2010-12-161-1/+1
|
* Partial splint cleanup. All regression tests pass.Eric S. Raymond2010-12-151-1/+0
|
* missing headers for openbsdChris Kuethe2010-12-141-0/+2
|
* Still more simplification of configuration and header handling.Eric S. Raymond2010-12-141-9/+1
|
* Wow, I totally baked the geostar import...Chris Kuethe2010-12-111-0/+91
|
* update inbufptr when skipping NMEA junkChris Kuethe2010-12-111-2/+6
|
* Unused-header removals by deheader. All regression tests pass.Eric S. Raymond2010-12-011-2/+0
|
* trailing whitespace cleanupJon Schlueter2010-11-061-11/+11
| | | | | | packet.c libgpsd_core.c gpsd.c
* Accept AIVDO as well as AIVDM packets.Eric S. Raymond2010-10-091-0/+2
|
* Backing out the 16-byte read limit, as it breaks the regression tests.Eric S. Raymond2010-05-311-24/+1
| | | | | | | Jon and others: I welcome fixes for the multipacket bug, but the have to psass the test suite. Please don't commit anything that doesn't. All regression tests pass.
* Limit reads in packet_get to 16 bytes.Jon Schlueter2010-05-281-1/+24
| | | | | This works around a bug where full packets can remain unprocessed. See the comment in the code for details.
* Better detection of mangled checksums.Eric S. Raymond2010-05-091-1/+2
|
* Clean up a mangled comment.Eric S. Raymond2010-05-091-3/+7
|
* splint cleanup.Eric S. Raymond2010-05-081-0/+2
|
* Make packet sniffer pass packets with bad checksums with type BAD_PACKET.Eric S. Raymond2010-05-081-1/+13
| | | | | | | | Such packets used to be truncated to zero length with the packet type matched before the checksum was bad. This caused confusion at various points in the code that were checking for zero-length packets. All regression tests pass, both in pty and UDP modes.
* Packetize Ashtech $PAHSRs correctly despite embedded binary content.Eric S. Raymond2010-05-061-1/+57
|