summaryrefslogtreecommitdiffstats
path: root/squarkdb.c
Commit message (Collapse)AuthorAgeFilesLines
* db: rename squarkdb to filterdbTimo Teräs2010-08-221-157/+0
| | | | will need authentication db later too.
* squark: add missing #include and define _GNU_SOURCETimo Teräs2010-08-201-0/+1
|
* db: smarter string pointer encoding (include length field)Timo Teräs2010-08-131-0/+16
| | | | | | 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).
* filter: implement basic analysis of urlsTimo Teräs2010-08-111-6/+25
| | | | | Analysing of the url host part, some simple tests. Not usable as squid filter yet.
* squarkdb: use stdint.h defined typedefsTimo Teräs2010-08-101-2/+2
| | | | 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/+121
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.