summaryrefslogtreecommitdiffstats
path: root/squarkdb.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2010-08-18 23:03:58 +0300
committerTimo Teräs <timo.teras@iki.fi>2010-08-18 23:03:58 +0300
commit2e58fc0a7a69ecbe4a48b296bcf6313825fcfa7c (patch)
tree64f0ba5cdd4cecd976ceed6dd1c3b3ac327a864f /squarkdb.h
parentcf8d9e12f5222e5e6173a82f58c14b7eb6842c46 (diff)
downloadsquark-2e58fc0a7a69ecbe4a48b296bcf6313825fcfa7c.tar.bz2
squark-2e58fc0a7a69ecbe4a48b296bcf6313825fcfa7c.tar.xz
db, filter: fix db generation of ipv4 style addresses
Properly embed the ipv4 address in database now. Teach filter to understand the two new reserved component id's.
Diffstat (limited to 'squarkdb.h')
-rw-r--r--squarkdb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/squarkdb.h b/squarkdb.h
index 743325e..68c1a2a 100644
--- a/squarkdb.h
+++ b/squarkdb.h
@@ -34,6 +34,9 @@ struct sqdb_header {
struct sqdb_section section[SQDB_SECTION_MAX];
};
+#define SQDB_PARENT_ROOT 0xffffff
+#define SQDB_PARENT_IPV4 0xfffffe
+
struct sqdb_index_entry {
uint32_t has_subdomains : 1;
uint32_t has_paths : 1;