Revision 758458be lib/ip.h

View differences:

lib/ip.h
41 41
char *ip_scope_text(unsigned);
42 42

  
43 43
/*
44
 *	Is it a valid network prefix?
44
 *	Network prefixes
45 45
 */
46 46

  
47
struct prefix {
48
  ip_addr addr;
49
  int len;
50
};
51

  
47 52
#define ip_is_prefix(a,l) (!ipa_nonzero(ipa_and(a, ipa_not(ipa_mkmask(l)))))
48 53

  
49 54
/*

Also available in: Unified diff