/* Description: Removes a NetLabel/LSM domain mapping. A @domain value of NULL causes the default domain mapping to be removed. Returns zero on success, negative values on failure.  */
int netlbl_cfg_map_del(const char *domain, u16 family, const void *addr, const void *mask, struct netlbl_audit *audit_info)
/* Description: Removes a NetLabel/LSM domain mapping. A @domain value of NULL causes the default domain mapping to be removed. Returns zero on success, negative values on failure.  */
int netlbl_cfg_map_del(const char *domain, u16 family, const void *addr, const void *mask, struct netlbl_audit *audit_info)
{
	if (addr == NULL && mask == NULL) {
		return netlbl_domhsh_remove(domain, audit_info);
	} else if (addr != NULL && mask != NULL) {
		switch (family) {
		case AF_INET:
			return netlbl_domhsh_remove_af4(domain, addr, mask,
							audit_info);
		default:
			return -EPFNOSUPPORT;
		}
	} else
		return -EINVAL;
}