summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2017-12-10 00:55:34 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2017-12-10 00:55:34 +0100
commit7fc55925beb06059759294e0e9b7bae45465395f (patch)
tree9f1ee1b354094aab25f64892f0f5dd1afeafdd26 /lib
parented1d853e5147376086e25f5edae9804cf242d6e0 (diff)
Several minor fixes
Diffstat (limited to 'lib')
-rw-r--r--lib/net.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/net.h b/lib/net.h
index cae3a749..2138f275 100644
--- a/lib/net.h
+++ b/lib/net.h
@@ -230,11 +230,14 @@ static inline int net_type_match(const net_addr *a, u32 mask)
static inline int net_is_ip(const net_addr *a)
{ return (a->type == NET_IP4) || (a->type == NET_IP6); }
+static inline int net_is_vpn(const net_addr *a)
+{ return (a->type == NET_VPN4) || (a->type == NET_VPN6); }
+
static inline int net_is_roa(const net_addr *a)
{ return (a->type == NET_ROA4) || (a->type == NET_ROA6); }
-static inline int net_is_vpn(const net_addr *a)
-{ return (a->type == NET_VPN4) || (a->type == NET_VPN6); }
+static inline int net_is_flow(const net_addr *a)
+{ return (a->type == NET_FLOW4) || (a->type == NET_FLOW6); }
static inline ip4_addr net4_prefix(const net_addr *a)