summaryrefslogtreecommitdiff
path: root/net_ntrip.c
Commit message (Collapse)AuthorAgeFilesLines
* Yet more cppcheck fixups. All regression tests pass.Eric S. Raymond2012-05-181-6/+6
|
* Still working on pacifying Coverity. All regression tests pass.Eric S. Raymond2012-05-111-1/+1
|
* Coverity defect #13: a slow resource leak.Eric S. Raymond2012-05-111-0/+1
|
* Try to get Coverity suppressions to the right place.Eric S. Raymond2012-05-111-1/+1
|
* Pacify Coverity some more.Eric S. Raymond2012-05-111-1/+1
|
* Suppress Coverity false positives.Eric S. Raymond2012-05-101-1/+2
|
* Clue in Coverity about functions returning handles.Eric S. Raymond2012-05-101-0/+1
|
* Shameless microtweaking.Eric S. Raymond2012-05-101-1/+1
| | | | | | | for (;;) generates tighter code than while (1). No practical difference but it bugs me anyway. All regression tests pass.
* More Coverity-spawned fixes. All regression tests pass.Eric S. Raymond2012-05-091-6/+12
|
* More coverity-inspired fixes.Eric S. Raymond2012-05-091-1/+1
| | | | All regression tests pass ans soint runs clean.
* '-' in C filenames is confusing given local naming conventions. Fix this.Eric S. Raymond2011-06-291-1/+1
|
* Dirk wrote: "Could you add the header line "Host:" in the NTRIPDirk Stöcker2011-04-101-2/+4
| | | | | | | | | accesses of GPSD (like in net_ntrip.c). This is required to have virtual hosts support working. Currently we still need to provide individual IP's for NTRIP casters, as not all software supports this header line." Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* scan-build and splint cleanup. All regression tests pass.Eric S. Raymond2011-03-291-3/+4
|
* Magic-number and strncpy elimination. All regression tests passEric S. Raymond2011-03-291-5/+13
|
* Fix scan-build glitches. All regression tests pass.Eric S. Raymond2011-03-281-1/+1
|
* Eliminate the ntrip_state global.Eric S. Raymond2011-02-261-69/+39
|
* With this minor patch, working NTRIP is confirmed.Andre Naujoks2011-02-251-2/+2
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* The NTRIP connection state musn't be zeroed on gpsd_activate().Eric S. Raymond2011-02-241-14/+16
| | | | Andre Naujoks informed me of this.
* Eliminate the context->netgnss_service member.Eric S. Raymond2011-02-241-2/+1
| | | | | | | | | This is more global context that really needed to be per-device state. Instead, create a per-devicd servicetype member to carry this information. Practically apeaking, this means gpsd can now watch multiple NTRIP and DGPS sessions without getting confused. All regressuin tests pass.
* Eliminate the dsock member in the context structure.Eric S. Raymond2011-02-241-2/+2
| | | | | | | | | | | | Another step towards integrating NTRIP support in a way that's actually correct for the daemon architecture. This involved conditioning out code for DGPSIP server lookups, a feature which was never documented and has probably been broken forever. It's actually not even clear there are still any DGPSIP servers still running; the dgpsip package was removed from Debiann at maintainer request in 2008 (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=392666). I may yet just rip out that code entirely.
* Move NTRIP per-connection state from global context to private driver area.Eric S. Raymond2011-02-241-24/+23
| | | | | | | The flap over probes revealed that the NTRIP support is bolted onto the daemon in a very awkward way that is likely to cause problems now that it's actually being, like, *used*. This is a step towards making it behave more like a normal driver.
* strcpy() elimination.Eric S. Raymond2011-02-221-1/+1
|
* NTRIP fixes from Andre Naujoks.Eric S. Raymond2011-02-211-168/+237
| | | | I fixed them up to splint clean.
* Bug fixes and improvements for the NTRIP code.Andre Naujoks2011-02-131-0/+3
| | | | | | | | | | | | | | | | | | | | | | The first thing I had to do to make RTCM work at all, was to remove the separate poll for the socket (the change in gpsd.c). The same stuff is done in consume_packet, so there is no loss here. In fact the duplicated read caused constant lock losses on the RTCM stream because of missing data, which was already read by the now removed read. Add RTCM2 passthrough to the UBX driver: versions of the firmware since 7.0 can handle this. The change in net_ntrip.c adds another string to the valid strings for rtcm2 to be recognized. See: http://www.sapos-ni-ntrip.de:2101/sourcetable.htm for the sourcetable of the server. The mountpoint I am using is EPS_NI. The problem is the RTCM1_ data format. The people from sapos confirmed, that this is a RTCM2 stream and so far it works. All regression tests pass. Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* More deheader testing.Eric S. Raymond2011-01-121-0/+1
|
* Back out the part of Beat Bolli's change that would spin on EAGAIN.Eric S. Raymond2011-01-051-2/+2
|
* Allows NTRIP connection to ntrip://www3.swisstopo.ch:8080/swiposNAVBeat Bolli2011-01-051-5/+14
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* More header portability audting with a new version of deheader.Eric S. Raymond2010-12-221-1/+4
|
* Refactor to turf all uses of gpsd_report() out of netlib.cEric S. Raymond2010-12-161-4/+9
| | | | | | A recent bug report makes it clear that all such uses have to be removed from the client libraries. Otherwise a GUI client might dummp log messages uselessly in the X session error log. This is a start.
* Total splint cleanup. All regressionm tests pass.Eric S. Raymond2010-12-161-1/+1
|
* Taking SuS seriously some more.Eric S. Raymond2010-12-141-14/+2
|
* More header rationalizations,Eric S. Raymond2010-12-141-5/+8
|
* Unused-header removals by deheader. All regression tests pass.Eric S. Raymond2010-12-011-3/+0
|
* Stop trying to special-case terminating whitespace in gpsd_report().Eric S. Raymond2010-05-051-2/+2
|
* More GNU indent suppression. All regression tests pass.Eric S. Raymond2010-04-141-0/+2
|
* More reindenting.Eric S. Raymond2010-04-141-3/+10
|
* Reindent the network support. All regression tests pass.Eric S. Raymond2010-04-141-81/+107
|
* Vanish away Id and Rev $ keywords, git won't expand them to anything useful.Eric S. Raymond2010-03-131-2/+0
|
* Copyright stamps everywhere. No code changes.Eric S. Raymond2010-03-111-2/+7
|
* Internal IPv6 support, derived from a support patch by Olivier Mehani.Eric S. Raymond2010-01-121-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | The patch original is at: https://lists.berlios.de/pipermail/gpsd-dev/attachments/20100111/85ad4e15/attachment.bin This revision changes netlib_connectsock() to take a first argument that is an address family and can specify IPv4, IPv6, or either. It also changes gpsd.c to open two client sockets, one IPv4 and one IPv6, and listen on both. As a required cleanup, a number of defaults to "127.0.0.1" become defaults to "localhost" so we're not hardwiring in IPv4 assumptions anymore. I've omitted a significant portion of the Mehani patch that changed the interface of the client library in an incompatible way. Currently there is no way to make gpsd listen to IPv4 or IPv6 only, and no way to make a client query over IPV4 or IPv6 only. Also, we'd really like to be able to condition out IPv6 or (someday) IPv4 support for a leaner runtime, and there's no way to do that yet, either. Under IPv4, regression tests pass; live operation with a GPS mouse and the aishub feed both work. However, the resulting code does not splint clean; this will need to be fixed, and that's going to be tricky due to the new sockaddr_t struct.
* David Ludlow's housekeeping and type-cleanup patch.Eric S. Raymond2010-01-021-3/+8
| | | | All regression tests pass,
* Declare socket-valued ints as socket_t.Eric S. Raymond2009-12-311-1/+1
|
* Get rid of u_char, and some splint cleanup.Eric S. Raymond2009-12-311-1/+1
|
* Include the whole config file in gpsd.h.Eric S. Raymond2009-11-201-3/+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.
* Finally found the right set of exclusions to stop splint from choking.Eric S. Raymond2009-09-111-0/+2
| | | | Now to see if I can trim them any.
* Guard some inclusions that splint doesn't like. Eric S. Raymond2009-09-101-1/+1
| | | | No effect on compilation. All regression tests pass.
* system call failure should be tested against -1, rather than "< 0"Chris Kuethe2009-07-091-3/+3
|
* change the dgnss_ prefix to netgnss_Chris Kuethe2009-07-041-4/+4
| | | | | this more accurately reflects that this is now becoming a generic network gnss interface
* create a net_ namespace for gpsd-as-a-client protocols. currently these areChris Kuethe2009-07-041-0/+475
dgpsip and ntrip. eventually, gpsd will be able to connect to a remote gpsd.