summaryrefslogtreecommitdiff
path: root/source4/lib/netif/interface.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-03-05 17:44:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:52:15 -0500
commitc71c86c52458eefae8a34774ec186c2837f473af (patch)
treecaeda5cdb47d5f6fefb4eabb50e66187823e5ac4 /source4/lib/netif/interface.c
parentaf30a32b6924b0f2b701186e435defbca2ebd1aa (diff)
downloadsamba-c71c86c52458eefae8a34774ec186c2837f473af.tar.gz
samba-c71c86c52458eefae8a34774ec186c2837f473af.tar.bz2
samba-c71c86c52458eefae8a34774ec186c2837f473af.zip
r13842: Make some more functions public.
(This used to be commit aac1b99b362993352d80692afa55c38fc851c016)
Diffstat (limited to 'source4/lib/netif/interface.c')
-rw-r--r--source4/lib/netif/interface.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source4/lib/netif/interface.c b/source4/lib/netif/interface.c
index 222e63b92e..8d738f6c41 100644
--- a/source4/lib/netif/interface.c
+++ b/source4/lib/netif/interface.c
@@ -233,7 +233,7 @@ static void load_interfaces(void)
/*
unload the interfaces list, so it can be reloaded when needed
*/
-void unload_interfaces(void)
+_PUBLIC_ void unload_interfaces(void)
{
talloc_free(local_interfaces);
local_interfaces = NULL;
@@ -242,7 +242,7 @@ void unload_interfaces(void)
/****************************************************************************
how many interfaces do we have
**************************************************************************/
-int iface_count(void)
+_PUBLIC_ int iface_count(void)
{
int ret = 0;
struct interface *i;
@@ -257,7 +257,7 @@ int iface_count(void)
/****************************************************************************
return IP of the Nth interface
**************************************************************************/
-const char *iface_n_ip(int n)
+_PUBLIC_ const char *iface_n_ip(int n)
{
struct interface *i;
@@ -275,7 +275,7 @@ const char *iface_n_ip(int n)
/****************************************************************************
return bcast of the Nth interface
**************************************************************************/
-const char *iface_n_bcast(int n)
+_PUBLIC_ const char *iface_n_bcast(int n)
{
struct interface *i;
@@ -293,7 +293,7 @@ const char *iface_n_bcast(int n)
/****************************************************************************
return netmask of the Nth interface
**************************************************************************/
-const char *iface_n_netmask(int n)
+_PUBLIC_ const char *iface_n_netmask(int n)
{
struct interface *i;
@@ -312,7 +312,7 @@ const char *iface_n_netmask(int n)
return the local IP address that best matches a destination IP, or
our first interface if none match
*/
-const char *iface_best_ip(const char *dest)
+_PUBLIC_ const char *iface_best_ip(const char *dest)
{
struct interface *iface;
struct in_addr ip;
@@ -330,7 +330,7 @@ const char *iface_best_ip(const char *dest)
/*
return True if an IP is one one of our local networks
*/
-BOOL iface_is_local(const char *dest)
+_PUBLIC_ BOOL iface_is_local(const char *dest)
{
struct in_addr ip;
@@ -346,7 +346,7 @@ BOOL iface_is_local(const char *dest)
/*
return True if a IP matches a IP/netmask pair
*/
-BOOL iface_same_net(const char *ip1, const char *ip2, const char *netmask)
+_PUBLIC_ BOOL iface_same_net(const char *ip1, const char *ip2, const char *netmask)
{
return same_net(interpret_addr2(ip1),
interpret_addr2(ip2),