Revision 25697773 lib/ip.h

View differences:

lib/ip.h
35 35
#define SCOPE_SITE 2
36 36
#define SCOPE_UNIVERSE 3
37 37

  
38
/*
39
 *	Is it a valid network prefix?
40
 */
41

  
42
#define ip_is_prefix(a,l) (!ipa_nonzero(ipa_and(a, ipa_not(ipa_mkmask(l)))))
43

  
38 44
#endif

Also available in: Unified diff