From 758458be054ebdf4cd77620faf214f2b491a49dc Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 13 May 2000 11:17:49 +0000 Subject: Unified parsing of prefixes. Had to rename `prefix' in filters to `fprefix'. --- lib/ip.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib') 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))))) /* -- cgit v1.2.3