#endif /* 0 */
/*
- * Prototypes
+ * Given a number of bits, make a netmask out of it.
*/
+#define NETMASK(bits) htonl((0xffffffff>>(32-(bits)))<<(32-(bits)))
+
+/*
+ * Prototypes
+ */
+
extern int check_if_ipmask(const char *mask);
extern void write_log(const char *filename, const char *pattern, ...);