Author: Kev <klmitch@mit.edu>
[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
9 /*
10  * Given a number of bits, make a netmask out of it.
11  */
12 #define NETMASK(bits) htonl((0xffffffff>>(32-(bits)))<<(32-(bits)))
13
14
15 /*
16  * Prototypes
17  */
18   
19 extern int check_if_ipmask(const char *mask);
20 extern void write_log(const char *filename, const char *pattern, ...);
21
22 #endif /* INCLUDED_support_h */