Revision 18c8241a lib/ip.h

View differences:

lib/ip.h
15 15
#include "ipv6.h"
16 16
#endif
17 17

  
18
/*
19
 *	ip_classify() returns either a negative number for invalid addresses
20
 *	or scope OR'ed together with address type.
21
 */
22

  
23
#define IADDR_INVALID		-1
24
#define IADDR_SCOPE_MASK       	0xfff
25
#define IADDR_HOST		0x1000
26
#define IADDR_BROADCAST		0x2000
27
#define IADDR_MULTICAST		0x4000
28

  
29
/*
30
 *	Address scope
31
 */
32

  
33
#define SCOPE_HOST 0
34
#define SCOPE_LINK 1
35
#define SCOPE_SITE 2
36
#define SCOPE_UNIVERSE 3
37

  
18 38
#endif

Also available in: Unified diff