Add direct support for FATSV-format output.

This is adapted from the FlightAware fork, with some cleanup and
modifications needed to work with the net-cleanup changes.

Inclusion of "verbatim" TSV data read from an AVR-format input
connection is not supported.
This commit is contained in:
Oliver Jowett 2014-12-08 19:56:45 +00:00
parent 66849e1096
commit 2dcc8e3524
6 changed files with 173 additions and 3 deletions

2
debian/changelog vendored
View file

@ -1,6 +1,8 @@
dump1090-mutability (1.08.2302.14+1mu-2) UNRELEASED; urgency=medium
* Fix a memory leak from use of realpath() in HTTP request processing.
* Add direct support for FATSV-format output, adapted from the FlightAware
fork.
-- Oliver Jowett <oliver@mutability.co.uk> Sun, 07 Dec 2014 14:14:25 +0000

View file

@ -81,6 +81,9 @@ DUMP1090_USER="dump1090"
# Port to listen on for Beast-format output connections. 0 disables.
#BEAST_OUTPUT_PORT=30005
# Port to listen on for FATSV-format output connections. 0 disables.
#FATSV_OUTPUT_PORT=10001
# TCP heartbeat interval in seconds. 0 disables.
#NET_HEARTBEAT=60

View file

@ -44,6 +44,7 @@ RAW_OUTPUT_PORT=30002
SBS_OUTPUT_PORT=30003
BEAST_INPUT_PORT=30004
BEAST_OUTPUT_PORT=30005
FATSV_OUTPUT_PORT=10001
NET_HEARTBEAT=60
NET_OUTPUT_SIZE=500
NET_OUTPUT_INTERVAL=1
@ -87,6 +88,7 @@ if [ "x$RAW_OUTPUT_PORT" != "x30002" ]; then ARGS="$ARGS --net-ro-port $RAW_OUTP
if [ "x$SBS_OUTPUT_PORT" != "x30003" ]; then ARGS="$ARGS --net-sbs-port $SBS_OUTPUT_PORT"; fi
if [ "x$BEAST_INPUT_PORT" != "x30004" ]; then ARGS="$ARGS --net-bi-port $BEAST_INPUT_PORT"; fi
if [ "x$BEAST_OUTPUT_PORT" != "x30005" ]; then ARGS="$ARGS --net-bo-port $BEAST_OUTPUT_PORT"; fi
if [ "x$FATSV_OUTPUT_PORT" != "x10001" ]; then ARGS="$ARGS --net-fatsv-port $FATSV_OUTPUT_PORT"; fi
if [ "x$NET_HEARTBEAT" != "x60" ]; then ARGS="$ARGS --net-heartbeat $NET_HEARTBEAT"; fi
if [ "x$NET_OUTPUT_SIZE" != "x0" ]; then ARGS="$ARGS --net-ro-size $NET_OUTPUT_SIZE"; fi
if [ "x$NET_OUTPUT_INTERVAL" != "x0" ]; then ARGS="$ARGS --net-ro-interval $NET_OUTPUT_INTERVAL"; fi