/* * support.h * * $Id: support.h,v 1.6.2.1 2003/11/01 10:19:08 isomer Exp $ */ #ifndef INCLUDED_support_h #define INCLUDED_support_h /* * Given a number of bits, make a netmask out of it. */ #define NETMASK(bits) htonl((bits) ? -(1 << (32 - (bits))) : 0) /* * Prototypes */ extern int check_if_ipmask(const char *mask); extern void write_log(const char *filename, const char *pattern, ...); #endif /* INCLUDED_support_h */