a580989e21c7bc3f5f512cbff6bb92d07ed3cf50
[ircu2.10.12-pk.git] / include / support.h
1 /*
2  * support.h
3  *
4  * $Id$
5  */
6 #ifndef INCLUDED_support_h
7 #define INCLUDED_support_h
8 #if 0
9 #ifndef INCLUDED_sys_types_h
10 #include <sys/types.h>         /* broken BSD system headers */
11 #define INCLUDED_sys_types_h
12 #endif
13 #endif /* 0 */
14
15 /*
16  * Given a number of bits, make a netmask out of it.
17  */
18 #define NETMASK(bits) htonl((0xffffffff>>(32-(bits)))<<(32-(bits)))
19
20
21 /*
22  * Prototypes
23  */
24   
25 extern int check_if_ipmask(const char *mask);
26 extern void write_log(const char *filename, const char *pattern, ...);
27
28 #endif /* INCLUDED_support_h */