From: Michael Tremer Date: Fri, 5 Jan 2018 16:41:32 +0000 (+0000) Subject: test: Write a ASN to the network database X-Git-Tag: 0.9.0~125 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9a339aa00bcae33dbb959b5c3441c76be2bff7dc;p=location%2Flibloc.git test: Write a ASN to the network database Signed-off-by: Michael Tremer --- diff --git a/src/test-network.c b/src/test-network.c index 40a6d32..1007bd1 100644 --- a/src/test-network.c +++ b/src/test-network.c @@ -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));