Frank Denis
dae5d4a800
Set SO_KEEPALIVE on the socket so that we don't hang forever
2015-11-16 09:56:11 +01:00
angt
4944e76f97
Fix last commit
2015-11-15 18:38:43 +01:00
angt
5865e61fd2
Use select() in the main loop (macos is full of sh!t)
2015-11-15 18:23:29 +01:00
angt
8855ce75fc
Code cleanup
2015-11-15 17:42:18 +01:00
angt
3e1809a608
Version 0.0.2
2015-11-15 16:27:03 +01:00
angt
04370f0aa0
Code cleanup
2015-11-15 10:51:28 +01:00
angt
e2a6aeced7
Be more paranoid: generate 2 keys
v0.0.1
2015-11-13 17:57:21 +01:00
angt
ef0561764f
Add debug option
2015-11-13 11:49:44 +01:00
angt
1f2f697946
Update README.md
2015-11-12 16:18:44 +01:00
angt
b21e4ecea9
Update README.md
2015-11-12 16:07:23 +01:00
angt
44e61295e5
Update .gitignore
2015-11-11 14:09:27 +01:00
angt
78713006b8
Do not poll forever in fd_*_all()
2015-11-11 10:42:03 +01:00
angt
a744de7ef2
Fix option_usage()
2015-11-11 10:31:15 +01:00
angt
eb3dd064cf
Enable nodelay by default
2015-11-11 09:56:27 +01:00
angt
3a7ba82d59
Update configure.ac
2015-11-11 09:36:19 +01:00
angt
9cf4c97468
Move code in src
2015-11-11 09:14:35 +01:00
angt
e122d76a32
Code cleanup
2015-11-10 21:51:02 +01:00
angt
e9cad43bee
Simplify dump_ip_header()
2015-11-10 21:50:31 +01:00
angt
b686dd845c
Dump ip header when something looks wrong
2015-11-10 17:28:44 +01:00
angt
ff8372c70e
Hash public data with skey and check it
2015-11-09 21:31:44 +01:00
angt
8fb452de82
Warn if IFF_MULTI_QUEUE is not supported
2015-11-09 12:47:04 +01:00
angt
aee6a48da4
Warn if TCP_CONGESTION is not supported
2015-11-09 12:36:53 +01:00
angt
a406fb6096
Add the multiqueue option
2015-11-09 12:33:35 +01:00
angt
55275038c3
Add the nodelay option to disable nagle
2015-11-09 12:22:30 +01:00
angt
8c441b1221
Fix option_usage()
2015-11-09 10:24:52 +01:00
angt
df8a199bee
Add the keyfile option to load a secret key
2015-11-09 10:10:29 +01:00
angt
3a64658eaf
Do not allow the same option multiple times
2015-11-09 08:58:57 +01:00
angt
f7db7e0c45
Use gettimeofday() instead of clock_gettime()
2015-11-09 08:47:56 +01:00
angt
228b633183
Set glorytun_CFLAGS instead of CFLAGS
2015-11-09 08:40:11 +01:00
angt
b836f8f5e5
Fix Makefile.am
2015-11-09 06:51:53 +01:00
angt
e2150df5da
Add option.[ch]
2015-11-09 06:47:33 +01:00
angt
8d08d74b95
Merge pull request #3 from jedisct1/travis
...
Test under Linux and OSX, with gcc and clang
2015-11-09 06:26:45 +01:00
Frank Denis
fd35fae472
IllumOS requires resolv, nsl and socket
2015-11-09 02:30:55 +01:00
Frank Denis
468b9df67c
The size in a %* formatter should be an int, not a size_t value
2015-11-09 02:14:56 +01:00
Frank Denis
cc58c42396
tcpinfo properties are uint32_t
2015-11-09 02:14:56 +01:00
Frank Denis
baef8233dc
<stdint.h> is required for uint8_t and friends
2015-11-09 02:14:56 +01:00
Frank Denis
1fdf62a57a
automake 2.65 is enough, and required for CentOS compatibility
2015-11-09 02:14:55 +01:00
Frank Denis
aa917988de
Require automake 1.9, add automatic dependency tracking
2015-11-09 02:14:55 +01:00
Frank Denis
c1c5a5b099
Stop checking for things that any platform from the past 15 years has
...
Add AC_USE_SYSTEM_EXTENSIONS
2015-11-09 02:14:55 +01:00
Frank Denis
da9464d3e2
Test under Linux and OSX, with gcc and clang
...
Possibly link the rt library for clock_gettime()
2015-11-09 02:14:34 +01:00
angt
399529eb86
Update .travis.yml
2015-11-08 23:23:28 +01:00
angt
f72063b650
TravisCI use autotools version 2.68
2015-11-08 18:40:27 +01:00
angt
f45aa3dc58
Update .gitignore
2015-11-08 18:20:13 +01:00
angt
14e3c892ba
Add minimal .travis.yml
2015-11-08 18:09:11 +01:00
angt
09a27fa817
Print usage when an unknown option is present
2015-11-08 17:05:17 +01:00
angt
5bf8e8ea5e
Merge pull request #2 from jedisct1/sad
...
Don't expect TCP_INFO and clock_gettime() to be portable
2015-11-07 23:38:37 +01:00
Frank Denis
69366ab996
Don't expect TCP_INFO and clock_gettime() to be portable
...
Sadly, TCP_INFO is only available on Linux and FreeBSD. Other systems make
it easy to retrieve interface-specific parameters, but not the parameters
for a given socket, except by inspecting PF states.
clock_gettime() is available on all BSD systems, but not on OSX.
mach_absolute_time() can be used there, but since it was only used to
display the TCP socket info, and TCP_INFO doesn't exist on OSX, let's
just ignore that altogether for now.
That's pretty sad but at least, it makes glorytun usable on !__linux__
2015-11-07 23:13:11 +01:00
angt
62980c97a3
Show TCP_INFO
2015-11-07 13:06:18 +01:00
angt
6ed8c3a034
Code cleanup
2015-11-06 19:12:14 +01:00
angt
f53c78f861
Use xored random data in the hash
2015-11-06 18:59:39 +01:00