Commit a293f829 authored by Michael Tremer's avatar Michael Tremer

Add flags for A1, A2 and A3

Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent a99e7c2b
...@@ -22,6 +22,12 @@ ...@@ -22,6 +22,12 @@
#include <loc/libloc.h> #include <loc/libloc.h>
#include <loc/format.h> #include <loc/format.h>
enum loc_network_flags {
LOC_NETWORK_FLAG_ANONYMOUS_PROXY = (1 << 0), // A1
LOC_NETWORK_FLAG_SATELLITE_PROVIDER = (1 << 1), // A2
LOC_NETWORK_FLAG_ANYCAST = (1 << 2), // A3
};
struct loc_network; struct loc_network;
int loc_network_new(struct loc_ctx* ctx, struct loc_network** network, int loc_network_new(struct loc_ctx* ctx, struct loc_network** network,
struct in6_addr* start_address, unsigned int prefix); struct in6_addr* start_address, unsigned int prefix);
......
...@@ -35,7 +35,7 @@ struct loc_network { ...@@ -35,7 +35,7 @@ struct loc_network {
char country_code[3]; char country_code[3];
uint32_t asn; uint32_t asn;
uint32_t flags; enum loc_network_flags flags;
}; };
static int valid_prefix(struct in6_addr* address, unsigned int prefix) { static int valid_prefix(struct in6_addr* address, unsigned int prefix) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment