Commit Graph

  • 725a8e2fd0 Merge pull request #5 from jedisct1/bsd-osx angt 2015-11-16 10:50:22 +01:00
  • dae5d4a800 Set SO_KEEPALIVE on the socket so that we don't hang forever Frank Denis 2015-11-16 09:52:05 +01:00
  • 704e663d6a Use /dev/urandom Frank Denis 2015-11-16 02:06:21 +01:00
  • c63885a748 Add support for the native OSX utun interface Frank Denis 2015-11-16 01:51:49 +01:00
  • 8530e4c378 On OSX and BSD, packets sent to the tun interface have to be prefixed by the protocol family Frank Denis 2015-11-16 00:43:16 +01:00
  • 4944e76f97 Fix last commit angt 2015-11-15 18:38:43 +01:00
  • 5865e61fd2 Use select() in the main loop (macos is full of sh!t) angt 2015-11-15 18:23:29 +01:00
  • 8855ce75fc Code cleanup angt 2015-11-15 17:42:18 +01:00
  • 3e1809a608 Version 0.0.2 angt 2015-11-15 16:27:03 +01:00
  • 04370f0aa0 Code cleanup angt 2015-11-15 10:51:28 +01:00
  • e2a6aeced7 Be more paranoid: generate 2 keys v0.0.1 angt 2015-11-13 17:57:21 +01:00
  • ef0561764f Add debug option angt 2015-11-13 11:49:44 +01:00
  • 1f2f697946 Update README.md angt 2015-11-12 16:18:44 +01:00
  • b21e4ecea9 Update README.md angt 2015-11-12 16:07:23 +01:00
  • 44e61295e5 Update .gitignore angt 2015-11-11 12:32:33 +01:00
  • 78713006b8 Do not poll forever in fd_*_all() angt 2015-11-11 10:42:03 +01:00
  • a744de7ef2 Fix option_usage() angt 2015-11-11 10:31:15 +01:00
  • eb3dd064cf Enable nodelay by default angt 2015-11-11 09:56:27 +01:00
  • 3a7ba82d59 Update configure.ac angt 2015-11-11 09:36:19 +01:00
  • 9cf4c97468 Move code in src angt 2015-11-11 09:14:35 +01:00
  • e122d76a32 Code cleanup angt 2015-11-10 21:51:02 +01:00
  • e9cad43bee Simplify dump_ip_header() angt 2015-11-10 21:50:31 +01:00
  • b686dd845c Dump ip header when something looks wrong angt 2015-11-10 17:28:44 +01:00
  • ff8372c70e Hash public data with skey and check it angt 2015-11-09 21:31:44 +01:00
  • 8fb452de82 Warn if IFF_MULTI_QUEUE is not supported angt 2015-11-09 12:47:04 +01:00
  • aee6a48da4 Warn if TCP_CONGESTION is not supported angt 2015-11-09 12:36:53 +01:00
  • a406fb6096 Add the multiqueue option angt 2015-11-09 12:33:35 +01:00
  • 55275038c3 Add the nodelay option to disable nagle angt 2015-11-09 12:22:30 +01:00
  • 8c441b1221 Fix option_usage() angt 2015-11-09 10:24:52 +01:00
  • df8a199bee Add the keyfile option to load a secret key angt 2015-11-09 10:10:29 +01:00
  • 3a64658eaf Do not allow the same option multiple times angt 2015-11-09 08:58:57 +01:00
  • f7db7e0c45 Use gettimeofday() instead of clock_gettime() angt 2015-11-09 08:47:56 +01:00
  • 228b633183 Set glorytun_CFLAGS instead of CFLAGS angt 2015-11-09 08:40:11 +01:00
  • b836f8f5e5 Fix Makefile.am angt 2015-11-09 06:51:53 +01:00
  • e2150df5da Add option.[ch] angt 2015-11-09 06:47:33 +01:00
  • 8d08d74b95 Merge pull request #3 from jedisct1/travis angt 2015-11-09 06:26:45 +01:00
  • fd35fae472 IllumOS requires resolv, nsl and socket Frank Denis 2015-11-09 02:30:55 +01:00
  • 468b9df67c The size in a %* formatter should be an int, not a size_t value Frank Denis 2015-11-09 02:03:21 +01:00
  • cc58c42396 tcpinfo properties are uint32_t Frank Denis 2015-11-09 01:58:30 +01:00
  • baef8233dc <stdint.h> is required for uint8_t and friends Frank Denis 2015-11-09 01:55:35 +01:00
  • 1fdf62a57a automake 2.65 is enough, and required for CentOS compatibility Frank Denis 2015-11-09 01:50:00 +01:00
  • aa917988de Require automake 1.9, add automatic dependency tracking Frank Denis 2015-11-09 01:49:45 +01:00
  • c1c5a5b099 Stop checking for things that any platform from the past 15 years has Add AC_USE_SYSTEM_EXTENSIONS Frank Denis 2015-11-09 01:44:55 +01:00
  • da9464d3e2 Test under Linux and OSX, with gcc and clang Possibly link the rt library for clock_gettime() Frank Denis 2015-11-09 01:18:08 +01:00
  • 399529eb86 Update .travis.yml angt 2015-11-08 23:23:28 +01:00
  • f72063b650 TravisCI use autotools version 2.68 angt 2015-11-08 18:40:27 +01:00
  • f45aa3dc58 Update .gitignore angt 2015-11-08 18:20:13 +01:00
  • 14e3c892ba Add minimal .travis.yml angt 2015-11-08 18:09:11 +01:00
  • 09a27fa817 Print usage when an unknown option is present angt 2015-11-08 17:05:17 +01:00
  • 5bf8e8ea5e Merge pull request #2 from jedisct1/sad angt 2015-11-07 23:38:37 +01:00
  • 69366ab996 Don't expect TCP_INFO and clock_gettime() to be portable Frank Denis 2015-11-07 23:05:37 +01:00
  • 62980c97a3 Show TCP_INFO angt 2015-11-07 13:06:18 +01:00
  • 6ed8c3a034 Code cleanup angt 2015-11-06 19:12:14 +01:00
  • f53c78f861 Use xored random data in the hash angt 2015-11-06 18:59:39 +01:00
  • 98331d8b7c Keep last return from fd_{read,write} in netio angt 2015-11-06 17:54:59 +01:00
  • 91535db6f1 Be more verbose angt 2015-11-06 17:44:50 +01:00
  • 408aa4bb3d Add str_cat() angt 2015-11-06 17:43:30 +01:00
  • 03de613f0a Use libsodium in PKG_CHECK_MODULES angt 2015-11-05 11:12:19 +01:00
  • 1c31500018 Warn in stderr and do not use gai_strerror() angt 2015-11-04 13:06:50 +01:00
  • 5f269ec870 Update README.md angt 2015-11-03 18:23:34 +01:00
  • 8b51e4613c Add option version angt 2015-11-03 18:03:34 +01:00
  • 2905943105 Add URLs angt 2015-11-03 18:03:06 +01:00
  • 24e3ad3f18 Init sodium and check for AES after option() angt 2015-11-03 17:47:33 +01:00
  • 9e83f58139 Use autotools angt 2015-11-03 17:12:18 +01:00
  • 8e9e5d8e91 Call poll() only when it's needed in fd_{read,write}_all() angt 2015-11-02 12:44:57 +01:00
  • 4740089f81 Code cleanup angt 2015-11-01 19:19:00 +01:00
  • 5951a560af Be nice with the CPU in fd_{read,write}_all() angt 2015-11-01 19:16:51 +01:00
  • b77fd86f2a Warn if decrypt_packet() fail angt 2015-10-31 22:37:17 +01:00
  • 1b3c23889a Do not use the shared secret as AES key directly angt 2015-10-31 22:03:47 +01:00
  • 0aeab9a33b Add a very simple encryption layer for testing angt 2015-10-31 21:30:51 +01:00
  • a25ac267d3 Update Makefile angt 2015-10-30 17:22:34 +01:00
  • 13086a0f88 Fix typo angt 2015-10-30 16:47:14 +01:00
  • 1722b5e05f Add a more generic option system angt 2015-10-30 16:34:41 +01:00
  • c9dca9269f Do not use writev() for now angt 2015-10-29 18:18:52 +01:00
  • 0957a0c341 Rewrite the ip size directly in the packet angt 2015-10-29 11:57:32 +01:00
  • 8a7fedcb7a Stop reading if no more space... angt 2015-10-28 17:14:47 +01:00
  • 504df2e318 Make GCC happy angt 2015-10-28 16:27:55 +01:00
  • cf1ccba57f Wait after a failed connect angt 2015-10-28 08:17:49 +01:00
  • b480a6eac3 Do not format buffer on restart angt 2015-10-27 20:11:11 +01:00
  • e48333d955 Use writev to write in tun angt 2015-10-27 12:55:41 +01:00
  • 575796fc6f Add get_ip_size() and cleanup angt 2015-10-26 15:59:02 +01:00
  • b82f2fd0da Fix poll angt 2015-10-26 10:45:09 +01:00
  • 2eece5ab15 Update Makefile angt 2015-10-25 15:58:02 +01:00
  • c6d8ad288e Update .gitignore angt 2015-10-25 13:14:58 +01:00
  • 29b0924db6 Do not force c99 angt 2015-10-25 13:12:59 +01:00
  • fa026aa36d Code cleanup angt 2015-10-24 22:46:51 +02:00
  • 1e7db434e7 Update Makefile angt 2015-10-24 19:38:51 +02:00
  • 4b5c774593 Use common-static.h angt 2015-10-24 15:59:52 +02:00
  • b3647c507a Add common-static.h angt 2015-10-24 15:30:35 +02:00
  • b01502a115 Set AI_PASSIVE only for listener angt 2015-10-24 12:12:09 +02:00
  • 7f7e2a7723 Code cleanup angt 2015-10-24 11:18:25 +02:00
  • 4f4b64bffd Code cleanup angt 2015-10-24 11:04:11 +02:00
  • 582c9a9ee7 Use fcntl(O_NONBLOCK) instead of old FIONBIO and set tun.fd to be non-blocking angt 2015-10-24 11:01:37 +02:00
  • 6ba1ed89b8 Update LICENSE angt 2015-10-22 21:49:10 +02:00
  • 7bce8aad83 Do not use gnu %m angt 2015-10-22 17:28:10 +02:00
  • 822dd459d8 Merge pull request #1 from jedisct1/linuxisms angt 2015-10-22 17:13:21 +02:00
  • 577f91e42b Remove Linuxisms Frank Denis 2015-10-22 17:08:20 +02:00
  • 7fb0e3f97d Code cleanup angt 2015-10-22 16:26:12 +02:00
  • f8484777b3 Add congestion angt 2015-10-22 11:12:14 +02:00
  • 4d98a16579 Setup fd for perf and always reconnect angt 2015-10-22 10:47:04 +02:00