summaryrefslogtreecommitdiffstats
path: root/squarkdb.h
Commit message (Collapse)AuthorAgeFilesLines
* db, filter: fix db generation of ipv4 style addressesTimo Teräs2010-08-181-0/+3
| | | | | Properly embed the ipv4 address in database now. Teach filter to understand the two new reserved component id's.
* db: smarter string pointer encoding (include length field)Timo Teräs2010-08-131-0/+5
| | | | | | So we don't need explicit null terminator in most cases saving space. It will also speed up comparisons as getting string blob is now constant time (no strlen needed).
* squarkdb: use stdint.h defined typedefsTimo Teräs2010-08-101-12/+13
| | | | u_int32_t is not standard, use uint32_t from stdint.h instead.
* squarkdb: cmph based url database for squark filteringTimo Teräs2010-08-091-0/+50
Implement basics of squarkdb which will be used by squark-filter to categorize URIs. Implementation is based on libcmph and uses file format suitable to be mmap:ed from squark-filter. Lua code is used to create the squark database from standard domain / url blacklists.