#include <stdint.h>
#define LOC_DATABASE_MAGIC "LOCDBXX"
+
+#ifdef LIBLOC_PRIVATE
+
#define LOC_DATABASE_VERSION 0
#define LOC_DATABASE_PAGE_SIZE 4096
// Description of the database
uint32_t description;
+ // License of the database
+ uint32_t license;
+
// Tells us where the ASes start
uint32_t as_offset;
uint32_t as_length;
+ // Tells us where the networks start
+ uint32_t network_data_offset;
+ uint32_t network_data_length;
+
+ // Tells us where the network nodes start
+ uint32_t network_tree_offset;
+ uint32_t network_tree_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;
};
#endif
+#endif