Revision 9b136840 lib/net.h

View differences:

lib/net.h
131 131
static inline uint net_pxlen(const net_addr *a)
132 132
{ return a->pxlen; }
133 133

  
134
ip_addr net_pxmask(const net_addr *a);
135

  
134 136

  
135 137
static inline int net_equal(const net_addr *a, const net_addr *b)
136 138
{ return (a->length == b->length) && !memcmp(a, b, a->length); }
......
203 205
void net_normalize(net_addr *N);
204 206

  
205 207
int net_validate(const net_addr *N);
208

  
206 209
int net_classify(const net_addr *N);
207
char * net_format(const net_addr *N, char *buf, int buflen);
210
int net_format(const net_addr *N, char *buf, int buflen);
208 211

  
209 212

  
210 213
int ipa_in_netX(const ip_addr A, const net_addr *N);

Also available in: Unified diff