summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-05-13 13:17:49 +0200
committerMartin Mares <mj@ucw.cz>2000-05-13 13:17:49 +0200
commit758458be054ebdf4cd77620faf214f2b491a49dc (patch)
treee8cdebbcf3095ddc1db63ac3c5b611f9708c9879 /lib
parent02bd064ab76f163313261dad5c273cb376be2a75 (diff)
downloadbird-758458be054ebdf4cd77620faf214f2b491a49dc.tar
bird-758458be054ebdf4cd77620faf214f2b491a49dc.zip
Unified parsing of prefixes.
Had to rename `prefix' in filters to `fprefix'.
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 38f561b..1cc74e8 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)))))
/*