summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ip.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/ip.h b/lib/ip.h
index 38f561b4..1cc74e81 100644
--- a/lib/ip.h
+++ b/lib/ip.h
@@ -41,9 +41,14 @@
char *ip_scope_text(unsigned);
/*
- * Is it a valid network prefix?
+ * Network prefixes
*/
+struct prefix {
+ ip_addr addr;
+ int len;
+};
+
#define ip_is_prefix(a,l) (!ipa_nonzero(ipa_and(a, ipa_not(ipa_mkmask(l)))))
/*