]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - src/loc/format.h
Write networks to the database
[people/ms/libloc.git] / src / loc / format.h
index c4690d5061eed2587a143d5d3b009c74f8a6ca64..1f36aae248a6db79fb154e2a718e56d17bf94302 100644 (file)
@@ -45,17 +45,21 @@ struct loc_database_header_v0 {
        uint32_t as_offset;
        uint32_t as_length;
 
+       // Tells us where the networks start
+       uint32_t networks_offset;
+       uint32_t networks_length;
+
        // Tells us where the pool starts
        uint32_t pool_offset;
        uint32_t pool_length;
 };
 
-struct loc_database_network_v0 {
+struct loc_database_network_node_v0 {
        uint32_t zero;
        uint32_t one;
 };
 
-struct loc_database_network_node_v0 {
+struct loc_database_network_v0 {
        // The start address will be encoded in the tree
        uint8_t prefix;