]> git.ipfire.org Git - people/ms/libloc.git/commitdiff
database format: Reduce number of flags to 16
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 15 Oct 2019 13:23:19 +0000 (13:23 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 15 Oct 2019 13:23:19 +0000 (13:23 +0000)
32 is very excessive and I hope we will never need that many.
Hence we reserve the remaining space.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/loc/format.h

index 6ea6036a16d18af89dbbb5f555e397791254fc9a..71acda40c52948edb2a471ee196bfbacf26efea4 100644 (file)
@@ -85,7 +85,10 @@ struct loc_database_network_v0 {
        uint32_t asn;
 
        // Flags
-       uint32_t flags;
+       uint16_t flags;
+
+       // Reserved
+       char padding[2];
 };
 
 struct loc_database_as_v0 {