1
0
mirror of git://erdgeist.org/opentracker synced 2025-01-12 16:00:06 +00:00
Commit Graph

43 Commits

Author SHA1 Message Date
Dirk Engling
a3251ffac7 mask bits to be checked in ot_net 2024-03-29 03:58:23 +01:00
Dirk Engling
5805fe5f86 Dont take address of address 2024-03-29 03:44:31 +01:00
Dirk Engling
543ab73017 Allow networks to be used instead of ip addresses when blessing is involved 2024-03-29 03:30:13 +01:00
Dirk Engling
6e591d7437 Add atomicity qualifier 2022-11-25 00:11:47 +01:00
Dirk Engling
f62398c748 Clean accesslists every five minutes 2022-11-24 16:38:26 +01:00
Dirk Engling
be825f5759 Add support for dynamic accesslists 2022-11-24 04:20:06 +01:00
Dirk Engling
e89905166c Mark return code of write() as intentionally unused 2021-08-22 14:45:19 +02:00
Dirk Engling
298fe52f52 Make accesslists work again by testing the actual result of bsearch. Thanks to Hanno 2021-06-05 11:25:55 +02:00
Dirk Engling
27f8189d84 accesslist checker should not operate on an empty list 2021-04-20 22:34:23 +02:00
Dirk Engling
00bd3b2009 unmap file if a memory allocation error occurs 2021-04-19 22:36:24 +02:00
Dirk Engling
102ba9075b Make accesslist reload thread safe. The last commit actually would make a free possible while another thread was bsearching that memory 2021-04-19 22:33:23 +02:00
Dirk Engling
fde79836e6 Try accessing the access lists without locks by making the replacement process as atomic as possible. 2021-04-19 22:12:50 +02:00
erdgeist
09adf4a9e1 Prevent infinite loop if whitelist ends in several returns 2010-08-26 01:36:32 +00:00
erdgeist
426c5f30c2 We have been too overly cautious not to read beyond the boundary. 2010-07-30 15:02:57 +00:00
erdgeist
3636be6cc7 Make whitelist parser more robust against comments. I assumed perfectly arranged white lists until now 2010-05-05 12:56:13 +00:00
erdgeist
20955311d1 Introducing the concept of vectors of nets into opentracker 2009-08-26 21:22:24 +00:00
erdgeist
bb770a45a6 Make accesslists thread safe. Signal handler is working in its own thread now, waiting for a signal. All other threads ignore signals. 2009-07-17 18:00:26 +00:00
erdgeist
57f85fc7cc Debug information only in debug mode. 2009-07-17 15:53:35 +00:00
erdgeist
06e89257a1 Make opentracker HUGE-accesslist-ready. Parse, then sort. 2009-07-17 15:52:39 +00:00
erdgeist
6819db7e98 Missed the last info_hash 2009-07-15 00:37:23 +00:00
erdgeist
553f62329a Parse accesslist file by mmaping the whole thing and searching for lines by ourself. fgets is slooooooow on linux. 2009-07-14 21:22:02 +00:00
erdgeist
d729c88d88 Be more verbose if the accesslist can not be found 2009-07-14 13:14:45 +00:00
erdgeist
274a03f3d7 Only get old accesslist value shortly before freeing it 2009-07-14 13:03:01 +00:00
erdgeist
a9c25b9fed Reloading accesslists left a wide window for race conditions. 2009-07-14 12:32:41 +00:00
erdgeist
dfa173b071 Make accesslist function check for the correct signal 2009-07-01 02:48:56 +00:00
erdgeist
877e3cfbb0 Remove unnecessary =NULL initialization of static pointers. 2009-06-17 15:07:38 +00:00
erdgeist
2a94892890 Display v4 addresses in v4 mode nicer 2009-06-16 12:17:53 +00:00
erdgeist
c7ed890222 Fix white spaces
Introduce loading tracker states with -l
Alter tracker state to a human readable form
2009-03-17 23:57:20 +00:00
erdgeist
9297967f85 Add a stat option the count bucket stalls
Add an iterator for all torrents. It's slower but for stats it's okay.
Move some stats collection stuff to the new iterator. More to come.
Start a "report all stats" page.
Start fixing the code to identify "busy" networks.
Add the concept of hosts allowed to proxy.
Add a parser for the X-Forwarded-For: HTTP header.
Clean up HTTP Header handling code. (Remove some left overs of now vanished sync code).
2009-03-04 14:35:21 +00:00
erdgeist
131211b4da V6 2009-01-13 22:41:17 +00:00
erdgeist
20257202af Fix incorrect prototype for accesslist_deinit 2009-01-02 07:52:17 +00:00
erdgeist
c6947b160f Handle program end more politely 2008-12-07 03:50:51 +00:00
erdgeist
08c7162783 Renamed OT_FLAG to OT_PEERFLAG to make code easier to read
Introduced READ16/32 and WRITE16/32 makros to abstract loading/storing from unaligned addresses away on cpu's that can actually load/store everywhere
Removed all unnecessary memmoves, especially where it only moved 6 bytes in inner loop. I replaced them with WRITE16/32(READ16/32()) makros
2008-12-06 18:46:00 +00:00
erdgeist
334c6e4bbb The BIG refactoring [tm]. Too many changes to count them. If it doesn't suite you, revert to last version. 2008-11-28 22:21:10 +00:00
erdgeist
daaee855b2 Whitespace fixes 2008-10-28 01:27:22 +00:00
erdgeist
f4283be677 Fix debug output for addresses >127 2008-10-17 15:21:11 +00:00
erdgeist
01c9c3695c Enabled debug output, fixed blessed ip permissions 2008-10-05 12:28:57 +00:00
erdgeist
e534db03c6 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:51 +00:00
erdgeist
c28cf398fd Introduce some kind of versioning 2007-12-20 05:59:34 +00:00
erdgeist
5d18bf211c Move blessed IP handling code to accesslist objects 2007-12-03 00:48:48 +00:00
erdgeist
8bee224dc0 static bufs are not shared anymore, even if that means more memory. 2007-11-21 01:55:59 +00:00
erdgeist
04214491ee missing include 2007-11-13 00:01:24 +00:00
erdgeist
697e239027 Moving accesslist stuff to its own object 2007-11-12 04:39:53 +00:00