Revision 25697773 lib/ipv4.h

View differences:

lib/ipv4.h
25 25
} ip_addr;
26 26

  
27 27
#define _I(x) (x).addr
28
#define _MI(x) ((struct ip_addr) { x })
28
#define _MI(x) ((struct ipv4_addr) { x })
29 29

  
30 30
#else
31 31

  
......
36 36

  
37 37
#endif
38 38

  
39
#define BITS_PER_IP_ADDRESS 32
40

  
39 41
#define IPA_NONE (_MI(0))
40 42

  
41 43
#define ipa_equal(x,y) (_I(x) == _I(y))
......
50 52
#define ipa_ntoh(x) x = _MI(ntohl(_I(x)))
51 53
#define ipa_classify(x) ipv4_classify(_I(x))
52 54

  
53
unsigned ipv4_mklen(u32);
54
u32 ipv4_mkmask(unsigned);
55 55
int ipv4_classify(u32);
56 56

  
57 57
/* FIXME: Is this hash function uniformly distributed over standard routing tables? */

Also available in: Unified diff