Commit Graph
100 Commits
Author SHA1 Message Date
angt a5f97fcc8c States need EOL 2016-01-01 11:00:29 +01:00
angt 35a9bf27df Add state INITIALIZED 2015-12-31 16:07:36 +01:00
angt ba0af8cc20 Define VERSION_MAJOR and use it in handshake 2015-12-29 18:31:23 +01:00
angt ec85be5c6a Code cleanup 2015-12-29 12:59:55 +01:00
angt fe989851ab Print more debug info 2015-12-29 12:58:39 +01:00
angt 46842dd200 Write state after the close() 2015-12-28 07:18:00 +01:00
angt e5eb30598d Code cleanup 2015-12-24 17:38:08 +01:00
angt c81ad0a7c6 One more time 2015-12-24 17:35:01 +01:00
angt 97641d6dda Reserve exclam for very bad message 2015-12-24 17:32:32 +01:00
angt e48dac775c The statefile option needs an absolute path and a fifo 2015-12-24 17:29:41 +01:00
angt 6282f36ac7 Add statefile option 2015-12-24 16:53:50 +01:00
angt cf022af4a9 Simplify the db by merging size and mask 2015-12-24 13:13:43 +01:00
angt 597c586657 Don't free data in db_remove() 2015-12-23 22:26:53 +01:00
angt fc7f9aa0c8 Add a very simple low cost database 2015-12-23 17:11:20 +01:00
angt 7492f977b6 Define a simple proto 2015-12-21 12:34:24 +01:00
angt 38b7333533 Refuse to start the client without keyfile 2015-12-18 16:07:14 +01:00
angt 1ab854f058 Code cleanup 2015-12-18 11:57:20 +01:00
angt c59def90fb Try to use SO_ACCEPTFILTER to defer accept on non-linux platforms 2015-12-17 23:20:31 +01:00
angt 347a3ecce7 Try to open tunX instead of glorytun by default in Linux 2015-12-17 17:06:04 +01:00
angt 98d13ef510 Print the tun name, not the path 2015-12-17 17:01:31 +01:00
angt 35b95001c4 Warn only when tun_create() fail 2015-12-17 14:07:14 +01:00
angt 75c12b36d6 Code cleanup 2015-12-17 13:59:40 +01:00
angt db01c8b33f Update README.md 2015-12-17 08:51:07 +01:00
angt fb4f6f6cb9 Do the md5sum after deploy 2015-12-16 11:27:53 +01:00
angt a86aea431d Let travis do the md5sum 2015-12-16 08:35:20 +01:00
angt 1a128a6d92 Print readable ip in debug mode 2015-12-15 17:32:03 +01:00
angt ddae22a3d9 Use a new random secret key without keyfile 2015-12-15 09:07:44 +01:00
angt 893de45272 Accept lower-case in fromhex() 2015-12-15 08:28:10 +01:00
angt 78ba4c9a59 Do not call ip_get_version() again and again 2015-12-14 18:37:50 +01:00
angt ffa549e444 Fix and cleanup gt_{from,to}hex 2015-12-13 11:26:58 +01:00
angt 6040f17e1c Code cleanup 2015-12-13 11:07:55 +01:00
angt da30c9110a Do not ask too much to macosx 2015-12-12 13:30:27 +01:00
angt 05de7b8109 Show udp hdr too in debug mode 2015-12-12 13:18:56 +01:00
angt 7cc6d08d7a Use __FAVOR_BSD... 2015-12-12 13:07:51 +01:00
angt d526a3cfa5 Fix retry when kx fails 2015-12-12 12:19:09 +01:00
angt 0e319b068d Listener should retry accept() by default 2015-12-12 11:05:58 +01:00
angt c82026cfd7 Update README.md 2015-12-11 17:44:16 +01:00
angt 109f70c208 Secret key must be stored in upper-case hex now 2015-12-11 17:33:35 +01:00
angt 23cdc37ea8 Add gt_tohex() and gt_fromhex() 2015-12-11 16:33:45 +01:00
angt 7688209093 Show tcp hdr in debug 2015-12-11 11:32:22 +01:00
angt 52a3a4b853 Add debug option to show ip_proto 2015-12-10 15:28:45 +01:00
angt 4cf0e7bc68 Function dt_ms() is pure too 2015-12-10 13:19:24 +01:00
angt f36fde5054 Add ip_get_proto() 2015-12-10 13:17:27 +01:00
angt e08eb73f98 Remove TCP_INFO 2015-12-10 12:33:54 +01:00
angt f3143eff83 Do not print error for EPIPE or ECONNRESET on write() 2015-12-09 20:38:49 +01:00
angt ea1fa120eb Allow IPv6 2015-12-09 20:27:40 +01:00
angt be29a12842 Deploy only on linux-gcc 2015-12-09 11:25:51 +01:00
angt 113f1ae58d Use file_glob in travis 2015-12-08 18:27:59 +01:00
angt 73fff34bfe Try to deploy with travis 2015-12-08 18:10:39 +01:00
angt 84ae6dae32 Use printf instead of echo -n 2015-12-08 15:16:22 +01:00
angt 5cf39c288c Add m4/pkg.m4 2015-12-08 01:20:59 +01:00
angt 7a0db79e31 Add LICENSE in the tarball 2015-12-08 01:07:47 +01:00
angt 40d0b20ece Add README.md autogen.sh and version.sh in the tarball 2015-12-08 01:02:02 +01:00
angt 09cd749107 Add version.sh 2015-12-08 00:38:52 +01:00
angt 9dda940928 Bye Bye fake mode 2015-12-05 11:39:46 +01:00
angt b7b64f98fd Bye Bye trap 2015-12-05 11:39:46 +01:00
angt ed2114a1ce Version 0.0.12 2015-12-04 11:18:04 +01:00
angt 8b6ae96a2e Little fix 2015-12-04 11:13:46 +01:00
angt 72d771e126 Key exchange may fail for several reasons 2015-12-04 08:11:56 +01:00
angt 4d7192667e Update configure.ac 2015-12-04 07:33:24 +01:00
angt 43f5457802 Oups 2015-12-03 21:13:24 +01:00
angt 2005068039 Wait for kx to send SIGUSR2 2015-12-03 21:11:58 +01:00
angt 9028aaea88 Update README.md 2015-12-03 20:53:43 +01:00
angt e80eb158d8 Update README.md 2015-12-03 20:48:24 +01:00
angt 68abb63f74 Fix last commit 2015-12-03 20:10:29 +01:00
angt c458a4d86f Dont try to poll for read when read buffer are full 2015-12-03 19:03:59 +01:00
angt cbdba8cba3 Dont try to poll for write, use a timeout 2015-12-03 18:49:18 +01:00
angt d787fa1dca Version 0.0.11 2015-12-03 18:10:55 +01:00
angt b7582d0107 Set GT_TIMEOUT to 5s 2015-12-03 16:59:22 +01:00
angt 2d46958f9f Beautify usage 2015-12-02 20:51:23 +01:00
angt 9131742ff3 Add retry const option 2015-12-02 20:48:13 +01:00
angt 590bac0f89 Add trap option to use SIGUSR2 2015-12-02 17:05:51 +01:00
angt a43f2c935d Send SIGUSR2 on successful connection 2015-12-02 16:50:34 +01:00
angt 200dd6273f Fix last commit 2015-12-02 16:08:35 +01:00
angt 2a97e94770 Version 0.0.10 2015-12-02 16:06:29 +01:00
angt bd46acb672 Add retry (count, slope and limit) option 2015-12-02 16:05:15 +01:00
angt 723006a10d Add fake daemon mode 2015-12-02 12:04:36 +01:00
angt da6a2a7d61 Code cleanup 2015-12-01 09:15:40 +01:00
angt 7db50de8df Version 0.0.9 2015-11-30 16:08:36 +01:00
angt 22a6b511f7 Little opt 2015-11-30 16:07:13 +01:00
angt 2f2e5e6f99 Use SIGUSR1 to show tcp_info 2015-11-29 18:10:15 +01:00
angt 3472771a6f Try to close nicely on tun error 2015-11-28 14:23:45 +01:00
angt 8989138051 Version 0.0.8 2015-11-27 14:53:18 +01:00
angt c2f76213cc Add noquickack option 2015-11-27 14:52:52 +01:00
angt 6ed736327a Align blk.data to 16 bytes 2015-11-27 08:07:53 +01:00
angt e20be0ad97 Keep it simple and use the right tools 2015-11-27 07:56:40 +01:00
angt 2e7355bb92 Write shutdown() should be called only one time 2015-11-27 07:44:45 +01:00
angt 8ec7238f49 Version 0.0.7 2015-11-25 15:50:38 +01:00
angt ac10f5a4e1 Fix prio and add priority size option 2015-11-25 15:49:45 +01:00
angt d658669a04 Beautify usage 2015-11-24 18:42:14 +01:00
angt 746d998d4e Add some useless free() 2015-11-24 13:34:29 +01:00
angt d1c51d90d4 Version 0.0.6 2015-11-24 11:30:04 +01:00
angt 0b1303b029 Add dscp-prio option (first qos draft) 2015-11-24 11:05:16 +01:00
angt a78089ba10 Version 0.0.5 2015-11-23 12:13:42 +01:00
angt 128aaae368 Add daemon option (only one fork) 2015-11-23 12:12:28 +01:00
angt 230c9fa26a Little fix and cleanup 2015-11-21 19:09:21 +01:00
angt 9834498d94 Avoid str_cmp() in sk_set() 2015-11-20 10:17:26 +01:00
angt 9454b5c9e1 Code cleanup 2015-11-19 23:38:13 +01:00
angt ca3ed9ff1a Group ip packets for encryption 2015-11-19 19:07:42 +01:00
angt 836ffaad37 Increment listener backlog 2015-11-19 09:51:29 +01:00