Author: Isomer <isomer@coders.net>
[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 #ifndef INCLUDED_config_h
9 #include "config.h"
10 #define INCLUDED_config_h
11 #endif
12 #if 0
13 #ifndef INCLUDED_sys_types_h
14 #include <sys/types.h>         /* broken BSD system headers */
15 #define INCLUDED_sys_types_h
16 #endif
17 #endif /* 0 */
18
19 /*
20  * Given a number of bits, make a netmask out of it.
21  */
22 #define NETMASK(bits) htonl((0xffffffff>>(32-(bits)))<<(32-(bits)))
23
24
25 /*
26  * Prototypes
27  */
28   
29 extern int check_if_ipmask(const char *mask);
30 extern void write_log(const char *filename, const char *pattern, ...);
31
32 #endif /* INCLUDED_support_h */