From 4bdcf07bcc3aaf7c3f7245cfdda06433bcf4ae60 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Fri, 25 Jan 2008 15:46:11 +0100 Subject: [PATCH] Add LIBNETAPI_LOCAL_SERVER() macro. Guenther --- source/lib/netapi/netapi.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/lib/netapi/netapi.h b/source/lib/netapi/netapi.h index c2f1b488db7..002fc377620 100644 --- a/source/lib/netapi/netapi.h +++ b/source/lib/netapi/netapi.h @@ -36,6 +36,11 @@ /**************************************************************** ****************************************************************/ +#define LIBNETAPI_LOCAL_SERVER(x) (!x || is_myname_or_ipaddr(x)) + +/**************************************************************** +****************************************************************/ + struct libnetapi_ctx { char *debuglevel; char *error_string; -- 2.34.1