/* $Id: ncat_hostmatch.h 11504 2008-12-24 20:18:15Z kris $ */

/* 
 * See if the IP address mask matches the remote address.
 *
 * Acceptable address formats: 
 *   ip.ip.ip.ip
 *   ip.ip.ip.ip/cidr mask
 *   ip.ip.ip.ip:nm.nm.nm.nm
 *   ip.ip.ip.*
 *   ip.ip.*.*
 *   ip.*.*.*
 *
 * Return 0 - No address match or a NULL IP address was supplied.
 * Return 1 - The address matched.
 */
extern int ncat_hostmatch(char *addr, char *remoteaddr);

