Commit Graph

55 Commits

Author SHA1 Message Date
Andreas Schneider
20951dda7d DHT: Fix return value of time().
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Signed-off-by: irungentoo <irungentoo@gmail.com>
2013-08-02 09:41:22 -04:00
Jeffail
4f2146c085 Back to old methods, reordered the structs, defines, and global variables to the top, should be no changes to binary 2013-08-01 22:53:50 +01:00
Jeffail
ab8f549c65 Refactored most of DHT.c, added local vim config 2013-08-01 20:45:21 +01:00
irungentoo
0eb429e458 Slightly improved hole punching in the DHT. 2013-07-28 17:10:55 -04:00
irungentoo
14b43651c1 Ran the code through: astyle --style=linux 2013-07-27 08:43:36 -04:00
nfkd
11e18d71c9 Update DHT.c 2013-07-26 22:42:33 -03:00
nfkd
c9063cf24a Update DHT.c 2013-07-26 21:54:02 -03:00
nfkd
d62aec7db5 Fix braces and a few whitespaces 2013-07-26 20:18:45 -03:00
SilentSand
1577a1eb61 Minor screwup fixed
I sure wish it was easier to compile on Windows.
2013-07-26 04:08:39 -04:00
SilentSand
59b34e423b Formatting.
Many stylistic changes, mostly formatting code more closely to the
coding style.
2013-07-26 04:02:17 -04:00
SilentSand
f377eb9ca2 Licensing
Added the GPLv3 license to some files in addition to fixing some
comments at the beginning of the files.
2013-07-25 21:45:56 -04:00
irungentoo
ee331fd73b Experimental and unoptimized symmetric NAT hole punching added. 2013-07-24 19:39:34 -04:00
irungentoo
8379941584 Added small thing to DHT. 2013-07-22 17:21:58 -04:00
irungentoo
11d02de9a1 Fixed small thing in DHT. 2013-07-22 16:26:10 -04:00
irungentoo
7fecd73ae0 Added routing functions to DHT. 2013-07-21 13:14:36 -04:00
irungentoo
b9b50481be Fixed segfault. 2013-07-20 19:59:01 -04:00
jvrv
a72777ed70 fix comments of some files 2013-07-20 00:00:10 -03:00
irungentoo
00320267ae Merge pull request #56 from Martijnvdc/patch-1
Patch 1
2013-07-19 10:02:52 -07:00
irungentoo
c657778f0c The last fix was wrong, this time it's properly fixed. 2013-07-19 12:35:52 -04:00
irungentoo
2d88476d44 Fixed big bug in DHT. 2013-07-19 12:09:40 -04:00
Martijnvdc
c66787929f Update DHT.c
changed all "i++" into "++i", as proposed by nfkd
2013-07-19 17:55:34 +02:00
irungentoo
817ad50d96 Fixed small mistake (Thank you stal). 2013-07-17 15:10:52 -04:00
irungentoo
f27b5c9296 Fixed bug with deleting friends. 2013-07-17 13:54:19 -04:00
irungentoo
ffa809b379 ncurses test now tells you when you connect to the DHT. 2013-07-16 19:45:20 -04:00
irungentoo
e63ba9c61b Loading and saving added to DHT. 2013-07-16 13:20:45 -04:00
Jeffail
859f31c160 Just cleaning up as I read, no behaviour changes 2013-07-15 15:42:50 +01:00
irungentoo
6e1390554c Some dynamic memory allocation added to the DHT. 2013-07-14 11:50:34 -04:00
irungentoo
79aa715514 First part of DHT hardening done.
Added crypto to the DHT communications.

This defeats completely the first attack mentioned in
docs/DHT_hardening.

Also updated the build system to build the latest test (it links it with
libsodium)
2013-07-12 16:27:19 -04:00
irungentoo
db37eca44b Some work done on the messenger part. 2013-07-08 20:50:25 -04:00
irungentoo
c00cf85078 Spelling mistakes fixed. 2013-07-08 12:36:11 -04:00
irungentoo
a632d960f8 Fixed to be confilcts with the DHT and the messenger part. 2013-07-07 11:54:25 -04:00
irungentoo
a480c0195a Crypto done(still need to test it a bit more thought)
Replaced chars with uint8_t

Added a new test program.

Added some functions to Lossless UDP.

And some other stuff.
2013-07-05 17:00:39 -04:00
irungentoo
457feeed0b Added current work on Lossless_UDP (Not done do not test it yet)
Lossless_UDP code is probably filled with problems right now.
this is normal.
2013-06-27 20:59:16 -04:00
irungentoo
d0ed163914 Fixed something in the DHT, added a milisecond time function. 2013-06-27 07:37:06 -04:00
irungentoo
488df25e05 Changed function name. 2013-06-26 15:33:32 -04:00
irungentoo
dcc3921682 Licenced the code under the GPL for now. 2013-06-26 15:02:42 -04:00
irungentoo
c7f7e30c75 Moved the network functions from the DHT into network.
Also made a nice function to init networking.
2013-06-26 09:56:15 -04:00
irungentoo
f7574c61fc Updated docs. 2013-06-26 08:32:42 -04:00
irungentoo
d1837342e0 Couple fixes. 2013-06-26 07:40:07 -04:00
irungentoo
5d70f9c119 Fixed a line in DHT.c and clarified something in DHT_test.c. 2013-06-25 17:50:30 -04:00
irungentoo
1837745d96 Fixed one possible bug in the DHT and added a basic TODO list.
Fixed a possible segfault which could have been cause by handling an
empty packet.
2013-06-25 17:16:45 -04:00
irungentoo
adc9c64fe6 Fixed stuff, things work better now.
Client no longer responds to packets from itself.

DHT_test can now find the ip of one peer based on its client id.

Some stuff fixed.
2013-06-25 15:24:31 -04:00
irungentoo
3396d8e495 DHT implementation finished. Currently testing it. 2013-06-25 12:11:11 -04:00
irungentoo
bd37e3ad68 Fixed sendnodes and updated readme. 2013-06-25 09:59:54 -04:00
irungentoo
c93858110b DHT almost done, started testing. Fixed ADDR compiling problem. No more warnings with GCC and clang. 2013-06-25 09:19:01 -04:00
irungentoo
8f4a011464 Last commit of the day. Client will soon be able to send send nodes packets. 2013-06-24 20:51:07 -04:00
irungentoo
af1b3b7f9b Made small application to test the DHT. Core DHT: finished some more functions. 2013-06-24 16:50:43 -04:00
irungentoo
61e9103076 Fixed some mistakes. 2013-06-24 14:31:50 -04:00
irungentoo
bdf3d9f6ab Added the ping list functions. 2013-06-24 14:26:29 -04:00
irungentoo
3bc95be051 More functions added, some fixes. 2013-06-24 12:23:46 -04:00