00ac178ed0
Top-level doc
Ian Gulliver
2016-03-11 15:34:06 -08:00
1dd924c679
Link to parent doc.
Ian Gulliver
2016-03-11 15:28:25 -08:00
4a5b6f3b30
More use cases
Ian Gulliver
2016-03-11 15:26:22 -08:00
aa87e0b602
Test
Ian Gulliver
2016-03-11 15:14:57 -08:00
436e9c4518
Test
Ian Gulliver
2016-03-11 15:14:07 -08:00
f579a69f77
Test
Ian Gulliver
2016-03-11 15:12:40 -08:00
c733fc99c2
More use examples
Ian Gulliver
2016-03-11 15:12:08 -08:00
90950c6320
Test
Ian Gulliver
2016-03-11 15:09:07 -08:00
dd9c77cbb6
Test
Ian Gulliver
2016-03-11 15:06:22 -08:00
b40d079847
Start of use section
Ian Gulliver
2016-03-11 15:05:41 -08:00
eadc74d195
Security documentation
Ian Gulliver
2016-03-11 15:00:45 -08:00
c389f3ec24
Convert check_mhz into sourcestats, using --exec-send, doing multi-source statistics
Ian Gulliver
2016-03-11 14:37:47 -08:00
2ad7ad7a8f
Keep the greeting around and push it to new clients
Ian Gulliver
2016-03-11 12:06:32 -08:00
251c577cb8
Print a bunch of runtime data
Ian Gulliver
2016-03-10 22:15:22 -08:00
633850b3be
gofmt
Ian Gulliver
2016-03-10 21:49:15 -08:00
95a7a3c8c5
Improve logging
Ian Gulliver
2016-03-10 21:47:04 -08:00
c1fc51fddf
Support serving a static directory along with the websocket stream
Ian Gulliver
2016-03-10 21:44:00 -08:00
521cc806fb
Apparently programs expect their stdin to be blocking
Ian Gulliver
2016-03-10 21:42:58 -08:00
c5f117dce5
Make exec sockets nonblocking. Fix FD leakage when more than one exec is running.
Ian Gulliver
2016-03-10 21:36:40 -08:00
3bcbc0cbb0
Turn adsb-ws into a json repeater, rather than a protocol converter
Ian Gulliver
2016-03-10 20:19:29 -08:00
d5da4fd9d6
Actually parsing packets
Ian Gulliver
2016-03-10 17:59:24 -08:00
31392f48b9
More input parsing
Ian Gulliver
2016-03-10 17:54:32 -08:00
3cea6ea262
Read input from stdin, push to stderr. Baby's first go
Ian Gulliver
2016-03-10 17:07:44 -08:00
a85582ad1e
Add go proto build rule
Ian Gulliver
2016-03-10 16:48:28 -08:00
2d1b4919b3
Start of a websocket server.
Ian Gulliver
2016-03-10 16:17:47 -08:00
62fce4fa70
Fix port
Ian Gulliver
2016-03-10 11:38:01 -08:00
89bbc645af
Remove AI_ADDRCONFIG, since the netlink socket is missing CLOEXEC and gets inherited by children.
Ian Gulliver
2016-03-10 11:09:58 -08:00
acd5ca6b31
Add script for running stutterfuzz
Ian Gulliver
2016-03-09 21:48:54 -08:00
af024f5115
Bring back the format lists in --help
Ian Gulliver
2016-03-09 21:16:59 -08:00
88c40641bd
Use SIGCHLD, setpgid(), etc. for normal child handling, instead of being fancy.
Ian Gulliver
2016-03-09 20:20:12 -08:00
5056380bd4
Get the exec children back in our progress group/session, and unblock signals to them.
Ian Gulliver
2016-03-09 18:40:29 -08:00
94744ef96f
Account for the possibility of stderr not being open when we start.
Ian Gulliver
2016-03-09 18:28:46 -08:00
689bfc7939
Open stdin and stdout to something if they don't arrive open, or bad things happen.
Ian Gulliver
2016-03-09 18:28:00 -08:00
8316739941
Move stdin/out handling entirely into stdinout.c
Ian Gulliver
2016-03-09 18:07:09 -08:00
8898142c97
Show capabilities on startup.
Ian Gulliver
2016-03-09 18:00:22 -08:00
374ff1208b
Remaining afl-fuzz output.
Ian Gulliver
2016-03-09 14:38:20 -08:00
318667060a
Plaintext additional afl-fuzz inputs.
Ian Gulliver
2016-03-09 14:07:49 -08:00
29fbf5e39e
Merge branch 'master' of github.com:flamingcowtv/adsb-tools
Ian Gulliver
2016-03-09 13:29:41 -08:00
bff0e1f22f
Start of afl-fuzz test cases.
Ian Gulliver
2016-03-09 13:29:28 -08:00
e03abd4f74
Add --pid-file
Ian Gulliver
2016-03-09 13:15:15 -08:00
cf923fe3fb
Add --quiet
Ian Gulliver
2016-03-09 13:10:07 -08:00
87f82b0327
Keep fd 2 open as our log fd, so other things that write there (e.g. assert()) work sanely.
Ian Gulliver
2016-03-09 13:06:26 -08:00
fc14de31ff
Only grab SIGHUP if we can do something with it.
Ian Gulliver
2016-03-09 12:55:21 -08:00
7167c080a2
Log pre-fork process ID.
Ian Gulliver
2016-03-08 23:19:21 -08:00
62ee0a690c
More startup debug info.
Ian Gulliver
2016-03-08 23:17:26 -08:00
b455826db2
Switch to signalfd for SIGHUP
Ian Gulliver
2016-03-08 23:04:20 -08:00
c0c25bd36a
Clean up wakeup teardown.
Ian Gulliver
2016-03-08 22:42:15 -08:00
9f5a6223bf
Fix shutdown for lack of input/output.
Ian Gulliver
2016-03-08 22:30:55 -08:00
e885723c59
Use signalfd to handle SIGINT and SIGTERM shutdown.
Ian Gulliver
2016-03-08 22:26:04 -08:00
ba13ebbe5c
deheader
Ian Gulliver
2016-03-08 22:00:08 -08:00
b915f38dca
Switch out custom wakeup system for timerfd.
Ian Gulliver
2016-03-08 21:53:57 -08:00
3985182304
Stop relying on struct ordering and packing for peer.
Ian Gulliver
2016-03-08 20:47:22 -08:00
d39cd62991
Cleanup how we cast and close peers.
Ian Gulliver
2016-03-08 20:41:00 -08:00
cd302a1746
Move FORMAT parsing into send code.
Ian Gulliver
2016-03-08 12:22:46 -08:00
d5eb4a919e
Initialize server before resolve, since server forks and resolve starts a thread.
Ian Gulliver
2016-03-08 11:28:21 -08:00
e5af92c331
Add --detach. Add multi-pass flag parsing that lets us get things in the right order.
Ian Gulliver
2016-03-08 11:26:39 -08:00
70ac401a23
Add missing help
Ian Gulliver
2016-03-07 21:42:51 -08:00
eb89dafd0d
Add --log-timestamps
Ian Gulliver
2016-03-07 20:12:35 -08:00
3bcc2b43ba
Log more debug data.
Ian Gulliver
2016-03-07 17:38:18 -08:00
31bb8f2a95
Remove version.h on make clean
Ian Gulliver
2016-03-07 17:18:51 -08:00
b7de1adca2
Start to generate version.h
Ian Gulliver
2016-03-07 17:18:23 -08:00
3ef52b16b5
Log file and line number.
Ian Gulliver
2016-03-07 17:08:36 -08:00
b434b67dd8
Switch to LOG macro
Ian Gulliver
2016-03-07 17:02:24 -08:00
602c6f729b
Add log rotation on SIGHUP
Ian Gulliver
2016-03-07 16:14:35 -08:00
ff4f4da608
deheader cleanup
Ian Gulliver
2016-03-07 15:19:00 -08:00
db271db748
Switch from pipe to socketpair for consistency.
Ian Gulliver
2016-03-07 14:52:10 -08:00
46696933aa
Add --log-file
Ian Gulliver
2016-03-07 11:26:25 -08:00
51eaabe27a
Format attributes go in the header, and I are dumb.
Ian Gulliver
2016-03-06 22:08:04 -08:00
ca754a817e
Cleaner logging of child output
Ian Gulliver
2016-03-06 18:57:37 -08:00
c7e1754239
Capture & log child output, rather than sharing our stderr with them.
Ian Gulliver
2016-03-06 18:50:15 -08:00
352d14935f
Fix leak & logic error in send/receive connections.
Ian Gulliver
2016-03-06 18:49:41 -08:00
6480a960fa
Switch to standard logging framework
Ian Gulliver
2016-03-05 22:54:26 -08:00
06e73e2319
stutterfuzz: Fix crash when shutdown() returns ENOTCONN
Ian Gulliver
2016-03-04 19:17:15 -08:00
746379aee5
Treat SIGTERM like SIGINT
Ian Gulliver
2016-03-04 13:02:43 -08:00
9c1fad10a9
Mention hop limits.
Ian Gulliver
2016-03-03 22:03:31 -08:00
94562acd07
Need to regenerate test cases. Rename files, add new proto and json.
Ian Gulliver
2016-03-03 22:02:16 -08:00
45abe06467
Add hop limit to json and proto formats.
Ian Gulliver
2016-03-03 22:00:02 -08:00
455bee2676
Use some magic devices to prevent users hurting themselves with --file-read=/dev/stdin as we re-use fd 0
Ian Gulliver
2016-03-03 21:27:16 -08:00
c101642f89
Style
Ian Gulliver
2016-03-03 21:13:50 -08:00
e8a4c55111
Add send+receive and character devices
Ian Gulliver
2016-03-03 21:13:17 -08:00
939b3b1851
Add send-receive channels
Ian Gulliver
2016-03-03 18:28:34 -08:00
77b9decbcd
Make send_get_hello public, so we can use it in send_receive
Ian Gulliver
2016-03-02 22:30:45 -08:00
2f6db632b2
Get everyone out of flow's business.
Ian Gulliver
2016-03-02 22:25:56 -08:00
e62b84e4e8
Add a peer_count_out_in
Ian Gulliver
2016-03-02 22:10:55 -08:00
eaf213f3c0
Set TCP_USERTIMEOUT even on send sockets, to detect stuck processes on the other end.
Ian Gulliver
2016-03-02 22:07:48 -08:00
10ba451458
Move more socket options into the flow framework.
Ian Gulliver
2016-03-02 21:51:30 -08:00
91775999d8
Rename socket_connected to socket_ready, since we use it before accept()
Ian Gulliver
2016-03-02 19:28:02 -08:00
14be11de79
Utility functions for reference counting.
Ian Gulliver
2016-03-02 19:20:25 -08:00
20bc50795d
Move fd flow code into flow.c
Ian Gulliver
2016-03-02 19:16:23 -08:00
896874e9d7
Switch wakeup to standard list.
Ian Gulliver
2016-03-02 19:10:31 -08:00