summaryrefslogtreecommitdiff
path: root/packet.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Scatter GNU indent pragmas to tell it not to do stupid things.Eric S. Raymond2010-04-141-2/+3
| | | | All regression tests pass.
* Reindented the packet sniffer an ISGPS code. All regression tests pass.Eric S. Raymond2010-04-141-225/+240
|
* compile with ubx on and nmea offChris Kuethe2010-04-101-0/+2
|
* fix compile with tsip disabledChris Kuethe2010-04-101-0/+2
|
* More spin-detection instrumentation.Eric S. Raymond2010-04-061-0/+3
|
* Pacify splint.Eric S. Raymond2010-04-041-2/+2
|
* Ensure that the ISGPS state is always reinitialized on each packet_test() call.Eric S. Raymond2010-03-311-0/+1
| | | | All regression tests pass.
* Factor out a little function to initiaslize the packet tester properly.Eric S. Raymond2010-03-311-0/+6
|
* Furthr simplification of Superstar2 checksum code. All regression tess pass.Eric S. Raymond2010-03-291-3/+4
|
* Simplify the checksum computation for Superstar2. All regression tests pass.Eric S. Raymond2010-03-291-2/+1
|
* Vanish away Id and Rev $ keywords, git won't expand them to anything useful.Eric S. Raymond2010-03-131-1/+0
|
* Copyright stamps everywhere. No code changes.Eric S. Raymond2010-03-111-0/+4
|
* David Ludlow's housekeeping and type-cleanup patch.Eric S. Raymond2010-01-021-2/+8
| | | | All regression tests pass,
* Fix a truly obscure bug in the packet getter.Eric S. Raymond2009-12-061-4/+8
| | | | | | It was eating #-comments after NMEA packets. Wouldn't matter, except gpsfake now interprets a magic comment to control sentence timing. All regression tests pass.
* Include the whole config file in gpsd.h.Eric S. Raymond2009-11-201-1/+0
| | | | | | | That is, instead of sectioning out two little config defines and putting them in. This makes gpsd.h self-copntained (e.g. in case it gets installed as a library header) and means we can get rid of most inclusions of it.
* flush the input buffer if it gets too full and nothing is detected.Chris Kuethe2009-11-191-0/+6
| | | | | particularly useful when the packet sniffer guessed wrong and thinks baud spew is TSIP. from "edo1" in irc.
* Fix some whitespace glitches found while experimenting with indent(1).Eric S. Raymond2009-11-171-3/+3
| | | | All regression tests pass.