]> git.ipfire.org Git - location/libloc.git/blobdiff - src/network.c
network-tree: Use the raw prefix to place networks onto the tree
[location/libloc.git] / src / network.c
index fc76e59af75eee4d8a664740e34a206b0ef5b01e..11fe670e235b074f9a4aab7a9e16cee4687b3355 100644 (file)
@@ -162,6 +162,10 @@ LOC_EXPORT unsigned int loc_network_prefix(struct loc_network* network) {
        return 0;
 }
 
+unsigned int loc_network_raw_prefix(struct loc_network* network) {
+       return network->prefix;
+}
+
 LOC_EXPORT const struct in6_addr* loc_network_get_first_address(struct loc_network* network) {
        return &network->first_address;
 }