]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - src/test-network.c
test: Write a ASN to the network database
[people/ms/libloc.git] / src / test-network.c
index 40a6d32c8e5cc978b3faf509e3c71e9b2003bd55..1007bd1df3f19fcdf7897fc0ca71d92a0ddc22ff 100644 (file)
@@ -116,6 +116,9 @@ int main(int argc, char** argv) {
        // Set country code
        loc_network_set_country_code(network4, "XY");
 
+       // Set ASN
+       loc_network_set_asn(network4, 1024);
+
        FILE* f = fopen("test.db", "w");
        if (!f) {
                fprintf(stderr, "Could not open file for writing: %s\n", strerror(errno));