Oliver Jowett
d09eefb827
Fix a memory leak from use of realpath() in HTTP request processing.
...
realpath() returns a heap-allocated buffer if given NULL for the destination buffer.
This must be freed by the caller; dump1090 does not do this.
Instead of worrying about freeing it, take the simpler approach of just providing a
stack-allocated destination buffer.
2014-12-07 14:05:24 +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
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
Malcolm Robb
4f449a8d44
Make Pull # compatible with Pull #42
2014-10-02 21:08:57 +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
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
186cac5c25
Use the anet-reported error string when reporting bind errors.
...
errno may have been modified by the time you see it.
2014-10-01 12:37:29 +01:00
Oliver Jowett
a513c3677b
Detect client EOF properly. Handle EWOULDBLOCK.
...
Client disconnection appears as a read of 0 bytes.
Without a test for this, dump1090 continues to poll that client forever.
Also, read() may return EWOULDBLOCK as well as EAGAIN
for "no data right now", so handle that.
I don't know if there is an equivalent Win32 bug here as the Win32
interfaces seem subtly different to vanilla POSIX.
The following test/break can probably be removed if Win32 needs
the same fix.
2014-10-01 12:29:16 +01:00
Oliver Jowett
98c7c73d06
Only use O_BINARY on Win32
2014-10-01 12:17:51 +01:00
MalcolmRobb
c09c68466c
Merge pull request #41 from mutability/skip-remote-timestamps
...
Don't output message reception time in SBS format for remote messages.
2014-09-30 17:15:46 +01:00
Malcolm Robb
e3bbf7b266
Read Files are binary
...
When replaying recordings, the read files are binary, so the file open
needs to reflect this so that spurious end of file characters aren't
misinterpreted.
2014-09-30 16:36:56 +01:00
Malcolm Robb
aa063ba89f
Undo Parts of Pull request #29
...
The table sizing doesn't seem to work in M$ IE8 and IE9.
2014-09-30 16:35:15 +01:00
MalcolmRobb
732fe52a10
Merge pull request #28 from ddeitterick/change_plotted_plane_table_bg_color
...
Change the Background Color for a Plotted Plane
2014-09-30 15:19:42 +01:00
MalcolmRobb
9d3452f424
Merge pull request #27 from ddeitterick/format_track_field
...
Add Degree Symbol to Track Value
2014-09-30 15:18:35 +01:00
MalcolmRobb
5cdcc22734
Merge pull request #29 from tslocum/bettermap
...
Improve map display layout and styling
2014-09-30 15:16:25 +01:00
MalcolmRobb
bd151e1e54
Merge pull request #40 from mutability/discard-bad-cpr-latitudes
...
Reject out-of-range latitudes when doing CPR decoding.
2014-09-30 15:10:33 +01:00
MalcolmRobb
8725ba0b6d
Merge pull request #39 from mutability/fractional-gain
...
Fix --gain with fractional gain values.
2014-09-30 15:00:12 +01:00
Oliver Jowett
b98c6856b3
Move the stats reset strictly after stats display, so the total message count is shown correctly.
2014-09-25 22:02:52 +01:00
Oliver Jowett
3eb39ab788
Don't output message reception time in SBS format for remote messages.
...
For remotely received messages that have a mlat timestamp, we have no
useful way of turning that timestamp into a wallclock timestamp, so
don't try, or we'll just produce wildly wrong results (_days_ in error)
2014-09-25 21:45:46 +01:00