Commit Graph

514 Commits

Author SHA1 Message Date
Dirk Engling e076dab883 added live sync code
added a config file parser
added tracker id
changed WANT_CLOSED_TRACKER and WANT_BLACKLIST into WANT_ACCESS_WHITE and WANT_ACCESS_BLACK
changed WANT_TRACKER_SYNC to WANT_SYNC_BATCH and added WANT_SYNC_LIVE
added an option to switch off fullscrapes

cleaned up many internal hardcoded values, like PROTO_FLAG,
2008-10-04 05:40:48 +00:00
Dirk Engling 76416b5c1c Cleaning up Build time options. Also add ot_livesync.[ch] 2008-10-03 21:35:03 +00:00
Dirk Engling de7ee67519 Live syncing between multiple tracker instances via udp multicast. 2008-10-03 21:33:53 +00:00
Dirk Engling aded7ebc09 Refine config syntax. Testing code... 2008-10-03 18:30:28 +00:00
Dirk Engling b93f563d1a Add a config file framework to opentracker 2008-09-23 22:59:54 +00:00
Denis Ahrens eb1e99961a add missing include on linux 2008-09-17 02:49:23 +00:00
Denis Ahrens b804dd7e6f now checking for the correct connection-id we gave out 2008-09-15 00:55:17 +00:00
Denis Ahrens be02614464 use a more reasonable compression level 2008-09-14 17:11:19 +00:00
Denis Ahrens 4cd9d33d7c send out the total downloaders for a announce response 2008-08-30 00:05:44 +00:00
Dirk Engling 3dda0c7c7b Typo in Makefile, thanks to Steffen. 2008-05-07 07:44:15 +00:00
Dirk Engling 4ee5fe81c7 Fix endianess issues, also obey number of peers requested in udp announces 2008-02-05 01:55:06 +00:00
Dirk Engling 432cf92e7c Embarrasing counter direction bug :) 2008-01-25 17:22:55 +00:00
Dirk Engling 6b2cb4396a Forgot to #ifdef some code only interesting when doing live network logging. 2008-01-17 15:34:50 +00:00
Dirk Engling a7c47dce53 Introducing live busy network detection. 2008-01-17 10:46:25 +00:00
Dirk Engling 1b6a33a0f8 sys/param.h needed under openbsd 2008-01-17 07:52:17 +00:00
Dirk Engling f57eb9661c Enable revision watching from the internet 2007-12-20 06:04:15 +00:00
Dirk Engling a7cfb64181 But keep Makefile in the libowfat is at ../libowfat state. 2007-12-20 06:01:16 +00:00
Dirk Engling e767fae72a Introduce some kind of versioning 2007-12-20 05:59:34 +00:00
Dirk Engling 4a9cc17e2f Forgot to unlock bucket in case of malloc error, thanks to Astro for reporting. 2007-12-17 18:55:38 +00:00
Dirk Engling 5be5e46f2a Add documentation to our uri scanner 2007-12-17 13:23:26 +00:00
Dirk Engling da6e48b384 too many wrong udp requests scroll too much :) disable logging for now 2007-12-15 17:39:38 +00:00
Dirk Engling 1438e2a93a more udp debugging 2007-12-15 17:35:27 +00:00
Dirk Engling a4e1b7f442 Do not lock out well behaving clients 2007-12-15 17:32:44 +00:00
Dirk Engling ba0c7d24c1 more udp debugging 2007-12-15 17:21:22 +00:00
Dirk Engling a8fd467ef1 Prepare udp connection id generation and checking 2007-12-15 17:11:43 +00:00
Denis Ahrens bc104ff4d5 add support for more stats:
1. stats for added and removed torrents
2. stats for start and stopped events from peers

this should help to detect DoS attacks and is useful for
profiling
2007-12-14 22:01:13 +00:00
Dirk Engling 8a259ea806 A simple script that fills up opentracker with some peers, if -DWANT_IP_FROM_QUERY_STRING is specifierd 2007-12-11 23:34:36 +00:00
Denis Ahrens c05e406d9a add mrtgstyle stats for number of torrents 2007-12-08 18:47:16 +00:00
Dirk Engling 5c1c1c94d8 / can now be redirected to any URL 2007-12-05 01:40:24 +00:00
Dirk Engling 168f9f504c Count invalid requests 2007-12-04 23:57:29 +00:00
Dirk Engling 50275a9462 Be a little more verbose about why increases fail 2007-12-04 23:11:05 +00:00
Dirk Engling 52a607c055 print ip addresses from unsigned chars 2007-12-04 23:04:24 +00:00
Denis Ahrens 6e6504dfcf [19:19] <eRdgEiSt> Denis: erdgeist ist ein Volltrottel! 2007-12-04 18:29:34 +00:00
Dirk Engling 72175c3205 Dont need arpa/inet 2007-12-03 01:21:34 +00:00
Dirk Engling 4b474b7009 Avoid warnings about unused variables without certain defines 2007-12-03 01:21:12 +00:00
Dirk Engling ae823c17db Fix a broken merge result 2007-12-03 01:20:44 +00:00
Dirk Engling 0dfe70e375 Fix include for iovecs 2007-12-03 01:20:27 +00:00
Dirk Engling 42de540e26 add newline to end of file 2007-12-03 01:12:25 +00:00
Dirk Engling 903fcd4627 Reflect changes for ot_http.* in project file 2007-12-03 01:09:25 +00:00
Dirk Engling 5b3eb23f5f Drop ot_{byte,word,dword} and use uint{8,16,32}_t, also simplify includes 2007-12-03 01:06:33 +00:00
Dirk Engling c3ef0c6e97 Drop ot_{byte,word,dword} and use uint{8,16,32}_t, also move run time keeping and FULLSCRAPE stderr output to ot_stats 2007-12-03 01:05:32 +00:00
Dirk Engling 65bf76b204 Introduce new ot_http.c and ot_http.h 2007-12-03 01:01:37 +00:00
Dirk Engling 8482c40226 Simplify includes, add new STATS code for scrapes 2007-12-03 01:00:58 +00:00
Dirk Engling a76deb3982 Finally split up the opentracker.c cruft into ot_http.c, ot_accesslist.c and just leave in socket handling and parameter parsing 2007-12-03 00:58:18 +00:00
Dirk Engling 3d3378e6a6 Drop ot_{byte,word,dword} and use uint{8,16,32}_t 2007-12-03 00:50:33 +00:00
Dirk Engling 7df4ce8fc7 Simplify includes 2007-12-03 00:49:24 +00:00
Dirk Engling d577adc79b Move blessed IP handling code to accesslist objects 2007-12-03 00:48:48 +00:00
Dirk Engling 72671f86b8 Move http handling to its own sources 2007-12-03 00:47:09 +00:00
Denis Ahrens bfe37ff99b add scrape stats and small correction to udp stats 2007-12-02 03:58:36 +00:00
Dirk Engling 4e00938ee2 Encforce setting the clock more often. This hopefully fixes a rare bug of g_now not being updated anymore. 2007-11-29 15:43:30 +00:00