X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=src%2Floc%2Fformat.h;h=c4690d5061eed2587a143d5d3b009c74f8a6ca64;hb=3b5f4af2cd45de45599774740290a081cd3d220d;hp=e6f6dbac7d14b0d8b913fd10c2550fe4c2cadc98;hpb=6809d5ac0a4410cc74f5ded0aa6c1518f2855bf2;p=people%2Fms%2Flibloc.git diff --git a/src/loc/format.h b/src/loc/format.h index e6f6dba..c4690d5 100644 --- a/src/loc/format.h +++ b/src/loc/format.h @@ -32,6 +32,9 @@ struct loc_database_magic { }; struct loc_database_header_v0 { + // UNIX timestamp when the database was created + uint64_t created_at; + // Vendor who created the database uint32_t vendor; @@ -47,6 +50,22 @@ struct loc_database_header_v0 { uint32_t pool_length; }; +struct loc_database_network_v0 { + uint32_t zero; + uint32_t one; +}; + +struct loc_database_network_node_v0 { + // The start address will be encoded in the tree + uint8_t prefix; + + // The country this network is located in + char country_code[2]; + + // ASN + uint32_t asn; +}; + struct loc_database_as_v0 { // The AS number uint32_t number;