summaryrefslogtreecommitdiff
path: root/net_dgpsip.c
Commit message (Collapse)AuthorAgeFilesLines
* LICENSE: Update licenses for consistency. No functional changes.Gary E. Miller2018-11-191-1/+1
|
* SPDXify the licerse references.Eric S. Raymond2018-03-081-1/+1
|
* Retire splint from our set of static analyzers.Eric S. Raymond2015-03-301-5/+0
| | | | | | | | | | | | | | | | | | | The proximate cause was that we've been seing emission of error messages that were randomly and disturbingly variable across different environments - notably Raspbian and Gentoo splint gave nontrivially different results than Ubuntu 14.10 splint. And this was *not* due to Ubuntu patches! A pristine splint built from the 3.1.2 tarball on Ubuntu didn't match the Raspbian and Gentoo results either. But this has been coming for a while. Easy access to more modern static analyzers such as coverity, scan-build and cppcheck has been decreasing the utility of splint, which is unmaintained and somewhat buggy and not easy to use. Only file not cleaned is ppsthread.c, because Gary has been working on it during this cleanup. All regression tests pass. PPS observed live on GR601-W.
* gpsd-report() -> gpsd_log()Eric S. Raymond2015-03-071-11/+11
| | | | | | | | | | | | | | | | This change is done so we can add a "log" hook to the pps_thread_t structure (this is not done yet) and harmonize with the name of the outer logging function. If that name had been left as gpsd_report() there would have been scope for bad confusion with the report_hook member. Also, remove two stray duplicative printf calls from the NMEA2000 driver (drivers shouldn't have printfs!) and fix one typo. This is a step towards factoring out ntplib. For that to happen, the PPS thread code needs to be decoupled from the core session structure. No logic changes. Object compatibility preserved. All regression tests pass.
* Now that the transition is done we can restore the gpsd_report name.Eric S. Raymond2014-08-271-5/+5
| | | | All regression tests pass.
* The big leap. Most instances of gpsd_report are replaced...Eric S. Raymond2014-08-271-5/+5
| | | | | | | | | | | | | | | | ...with calls to gps_notify(), which indirects to its output method through a slot in an errout structure. Usually the errout structure lives inside the session context, but because struct errout_t is its own thing this does not have to be the case. One large clique of gpsd_notify() calls, in packet.c and isgps.c, looks at a struct errout_t copy in a lexer control block This change is not complete. Remnant gpsd_report calls need to be changed, and gpsmon needs to be tweaked so that the struct_error_t in its context is a non-defaukt hook updating the cuses display rather than simply dumping to stderr. Also the report label functionality needs to be added. All regression tests pass.
* Introduce struct errout_t to encapsulate error-reporting hooks.Eric S. Raymond2014-08-271-5/+5
| | | | | | A major step towards eliminating reverse linkage. All regression tests pass.
* Code is fully cppcheck, splint, and Coverity clean.Eric S. Raymond2013-11-061-0/+1
| | | | All regression tests pass. PPS is live.
* Change gpsd_report to no longer use a global. All regression tests pass.Eric S. Raymond2013-09-291-5/+7
| | | | | | | | This is a large, ugly change. But without it we can't troubleshoot the ICP/IP-source initialization bug properly - colliding definitions of gpsd_report() were interfering with error reporting early in gpsd runs. More cleanup work remains to be done, but at least this is working.
* Fix static-checker warnings. All regression tests pass.Eric S. Raymond2013-04-301-1/+1
| | | | | cppchecker now finds variables that could have reduced scope; that's most of these.
* Eliminate the ntrip_state global.Eric S. Raymond2011-02-261-8/+10
|
* The NTRIP connection state musn't be zeroed on gpsd_activate().Eric S. Raymond2011-02-241-3/+3
| | | | Andre Naujoks informed me of this.
* Eliminate the context->netgnss_service member.Eric S. Raymond2011-02-241-3/+2
| | | | | | | | | 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 context sentdgps member in favor of a per-session state flag.Eric S. Raymond2011-02-241-2/+3
| | | | All regressuin tests pass.
* Eliminate the dsock member in the context structure.Eric S. Raymond2011-02-241-88/+11
| | | | | | | | | | | | 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.
* More deheader testing.Eric S. Raymond2011-01-121-0/+1
|
* Partial splint cleanup.Eric S. Raymond2010-12-241-1/+1
|
* deheader broke the build againChris Kuethe2010-12-221-0/+2
|
* More header portability audting with a new version of deheader.Eric S. Raymond2010-12-221-2/+1
|
* Work around a splint bug.Eric S. Raymond2010-12-151-1/+1
|
* Partial splint cleanup. All regression tests pass.Eric S. Raymond2010-12-151-1/+1
|
* Remove second include of <sys/socket.h>.Eric S. Raymond2010-12-141-1/+0
|
* Add sys/socket.h, following POSIX.Greg Troxel2010-12-141-0/+1
| | | | | | | This file failed to compile due to use of AF_UNSPEC. POSIX says that one needs to include sys/socket.h. http://pubs.opengroup.org/onlinepubs/007908799/xns/syssocket.h.html
* missing headers for openbsdChris Kuethe2010-12-141-0/+2
|
* Because we're taking SuS seriously we can simplify the configuration machinery.Eric S. Raymond2010-12-141-7/+1
|
* Taking SuS seriously some more.Eric S. Raymond2010-12-141-7/+0
|
* More header rationalizations,Eric S. Raymond2010-12-141-3/+6
|
* Unused-header removals by deheader. All regression tests pass.Eric S. Raymond2010-12-011-5/+0
|
* Stop trying to special-case terminating whitespace in gpsd_report().Eric S. Raymond2010-05-051-2/+2
|
* Reindent the network support. All regression tests pass.Eric S. Raymond2010-04-141-28/+40
|
* 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-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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-4/+9
| | | | All regression tests pass,
* Include the whole config file in gpsd.h.Eric S. Raymond2009-11-201-1/+1
| | | | | | | 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.
* change the dgnss_ prefix to netgnss_Chris Kuethe2009-07-041-2/+2
| | | | | 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/+149
dgpsip and ntrip. eventually, gpsd will be able to connect to a remote gpsd.