Commit graph

680 commits

Author SHA1 Message Date
Oliver Jowett bbd5a13030 Merge branch 'net-cleanups' 2014-10-31 19:38:06 +00:00
Oliver Jowett 29d1e53f9f Merge remote-tracking branch 'upstream/master' into net-cleanups 2014-10-31 17:58:03 +00:00
MalcolmRobb bff92c4ad7 Merge pull request #36 from mutability/improve-phase-enhancement
Rearrange phase enhancement so that it handles phase errors in both directions
2014-10-31 13:01:59 +00:00
Malcolm Robb 960ebfccea Publish version 1.10.3010.14 2014-10-30 17:50:56 +00:00
MalcolmRobb b8ea7540c7 Merge pull request #13 from bovine/faurl
link to FlightAware for flight details
2014-10-30 12:11:28 +00:00
Malcolm Robb a9cd75ded1 More Updates to Pull #54
Pull #54 breaks the Windows version of dump1090 due to a bug in the
inet_aton() windows function.

1) Fix the bug in the windows inet_aton()
2) Modify the command line code to strdup() the command line string.
3) Leave the Modes.net_bind_address pointer NULL if no command line
specified
2014-10-30 12:06:03 +00:00
Jeff Lawson cd09210cb9 Merge branch 'master' into faurl 2014-10-29 23:00:38 -05:00
Malcolm Robb 6d55cf6f71 Publish version 1.10.2910.14 2014-10-29 19:05:01 +00:00
Malcolm Robb 68f1220ab8 Change default binding to 0.0.0.0
Pull #54 permits changing the default bind address. The default was
127.0.0.1. This prevents external access unless a command line switch is
used. Since many users of dump1090 are using dump1090 as remote receiver
heads for programs such as plane plotter, this is undesirable. If you
want to lock down your RPi for local use only then use the command line
switch. If not, retain legacy open mode by binding to 0.0.0.0 by
default.
2014-10-29 19:04:25 +00:00
Malcolm Robb 5f18f6cbca Fix warnings and Windows compile problems 2014-10-29 19:00:42 +00:00
Malcolm Robb 3447f7ec83 Add Windows resource file for version numbering 2014-10-29 19:00:03 +00:00
Malcolm Robb abaf9d8b39 Fix W3C Validation Errors #34
Submitted by ddeitterick, but the push didn't work on IE8/9. I hope I've
extracted the required parts and implemented them correctly here.
2014-10-29 17:39:34 +00:00
MalcolmRobb 5699e48855 Merge pull request #54 from l0calguest/bind_address
Ability to assign bind address for services
2014-10-29 17:21:12 +00:00
MalcolmRobb 7b2e4ca67d Merge pull request #49 from mutability/show-stale-planes
Change the marker color for aircraft with no recent updates.
2014-10-29 15:32:30 +00:00
MalcolmRobb da3cf96989 Merge pull request #38 from hhm0/http_server_wk
HTTP server fixes
2014-10-29 15:24:33 +00:00
hhm 027ab92e7a Merge branch 'master' of https://www.github.com/MalcolmRobb/dump1090 into http_server_wk 2014-10-29 10:29:04 -04:00
MalcolmRobb c142c1fe2e Merge pull request #33 from hhm0/socket_hang
Close network file descriptors when finished with them
2014-10-29 12:55:16 +00:00
hhm 3333fcd5bc Merge branch 'master' of https://www.github.com/MalcolmRobb/dump1090 into socket_hang 2014-10-29 02:15:04 -04:00
hhm cbab205790 Merge branch 'master' of https://www.github.com/MalcolmRobb/dump1090 into http_server_wk 2014-10-29 02:03:57 -04:00
MalcolmRobb d1ad4b91c6 Merge pull request #30 from tslocum/fr24link
Add flightradar24.com link
2014-10-28 13:07:15 +00:00
MalcolmRobb f95d54e837 Merge pull request #25 from ddeitterick/center_selected_plane_distance
Center "Distance from Site" for Selected Plane
2014-10-28 12:59:43 +00:00
MalcolmRobb e225b5dead Merge pull request #24 from ddeitterick/add_distance_to_table
Add Distance to Table Info
2014-10-28 12:59:08 +00:00
demonx 5b4d811c7d Ability to assign bind address for services 2014-10-25 21:33:45 +02:00
Jeff Lawson 87a88c9798 Merge branch 'master' into faurl 2014-10-12 16:31:35 -05:00
hhm f71bc6c130 Merge branch 'master' of https://www.github.com/MalcolmRobb/dump1090 into http_server_wk 2014-10-04 21:39:15 -04:00
hhm e20e240130 B"H Merge branch 'master' of https://www.github.com/MalcolmRobb/dump1090 into socket_hang
Conflicts:
	net_io.c
2014-10-04 21:36:51 -04:00
Oliver Jowett cd3efe2d63 Merge branch 'net-cleanups'
Conflicts:
	dump1090.c
2014-10-03 23:15:06 +01:00
Oliver Jowett 22f2a8db37 Merge branch 'net-cleanups' into oversampling
Conflicts:
	dump1090.c
	dump1090.h
2014-10-03 23:04:09 +01:00
Oliver Jowett 1769ac9006 Restructuring of network output side.
Mostly refactoring the common code that was duplicated
between the different output types so that there aren't
many copies floating around.

This introduces "struct net_writer" to store the state of a
particular type of output service - buffers, time of last write,
connection count etc. prepareWrite() / completeWrite() give access
to the buffer and handle the actual writes and flushing when needed.

Heartbeat and time-based flushing move into a generic periodic-work
function.

Update the SBS output code to use the new infrastructure. This makes
a big different to CPU use when under load.
2014-10-03 22:55:21 +01:00
Oliver Jowett 8d4f1a396c Merge branch 'fix-net-list-corruption' into net-cleanups 2014-10-03 20:58:52 +01:00
Oliver Jowett f58c21bfc1 Merge branch 'show-stale-planes' 2014-10-02 22:51:32 +01:00
Oliver Jowett 75438d5595 Change the marker color for aircraft with no recent updates. 2014-10-02 22:50:09 +01:00
MalcolmRobb 65751ed6e9 Merge pull request #45 from mutability/net-client-eof-handling
Detect client EOF properly. Handle EWOULDBLOCK.
2014-10-02 21:32:40 +01:00
MalcolmRobb dee6ded673 Merge pull request #35 from mutability/use-repaired-checksums
Check if bit correction happened before bailing out due to a bad CRC.
2014-10-02 21:29:10 +01:00
Oliver Jowett 4a4fed2b37 Merge branch 'fix-net-list-corruption' into oversampling 2014-10-02 21:18:50 +01:00
Oliver Jowett 1cf0097dac Merge branch 'fix-net-list-corruption' 2014-10-02 21:18:35 +01:00
Malcolm Robb 4f449a8d44 Make Pull # compatible with Pull #42 2014-10-02 21:08:57 +01:00
Oliver Jowett a2f49f2bb8 Fix a crash when an outbound client is closed in response to reading a remote message.
When we read from some client A, we may end up forwarding a message to other
clients. If we forward to some client B and there is a write error, then
we close B and remove it from the client list. However, if before this happened
A->next == B, then the read loop will still be holding on to a pointer to B,
and we crash.

As it's unpredictable what clients could be closed at what point, the simplest
approach is to retain closed clients in the list until we are at a point where
we know there are no stray pointers on stack, and only then modify the list.
This also simplifies anything that has to loop over clients, as it doesn't need
to worry about the current client being freed under it.
2014-10-02 21:06:10 +01:00
MalcolmRobb 16a900c667 Merge pull request #42 from mutability/prefer-global-cpr
Prefer to use global CPR decoding where possible.
2014-10-02 21:05:26 +01:00
MalcolmRobb bc496fbcad Merge pull request #43 from mutability/more-stats
Add --stats-every option, add sample block counters
2014-10-02 20:51:13 +01:00
Malcolm Robb 5a5c52d7a9 Merge remote-tracking branch 'origin/pr/46' 2014-10-02 19:53:43 +01:00
MalcolmRobb 98f510540e Merge pull request #47 from mutability/flightradar-compat-fix
Always emit a message reception time, as otherwise the FR24 uploader is unhappy.
2014-10-02 19:41:18 +01:00
Oliver Jowett 0c61d1b340 Merge branch 'master' into oversampling 2014-10-02 12:22:48 +01:00
Oliver Jowett e4a3bd6c51 Merge branch 'flightradar-compat-fix' 2014-10-02 12:22:32 +01:00
Oliver Jowett 15f3408d8e Always emit a message reception time, as otherwise the FR24 uploader is unhappy.
When we don't have a time available (e.g. remote message) use the system time.
2014-10-02 12:20:37 +01:00
hhm 13fe375437 Merge branch 'master' of https://www.github.com/MalcolmRobb/dump1090 into http_server_wk 2014-10-01 11:10:41 -04:00
hhm 8b4d5b3dca Merge branch 'master' of https://www.github.com/MalcolmRobb/dump1090 into socket_hang 2014-10-01 11:10:19 -04:00
MalcolmRobb bf111360bc Merge pull request #44 from mutability/fix-obinary
Only use O_BINARY on Win32
2014-10-01 13:57:07 +01:00
Oliver Jowett e008f0fc3f Resync with master. 2014-10-01 12:44:07 +01:00
Oliver Jowett 622b158367 Merge branches 'fix-obinary', 'net-client-eof-handling' and 'report-bind-errors' 2014-10-01 12:41:28 +01:00