summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Yakavenka <ayakav@codeaurora.org>2011-11-08 20:25:23 +0900
committerIliyan Malchev <malchev@google.com>2012-06-21 16:56:01 -0700
commit7c3d1c291ab5f9efb2efcfd5def1baeea1255917 (patch)
tree0bdcf9280e8adfef8ca2afab9b94b074b262b445
parent64b7c2cca044f821e182461127b445f9827c3d60 (diff)
downloadsystem_core-7c3d1c291ab5f9efb2efcfd5def1baeea1255917.zip
system_core-7c3d1c291ab5f9efb2efcfd5def1baeea1255917.tar.gz
system_core-7c3d1c291ab5f9efb2efcfd5def1baeea1255917.tar.bz2
Export flags needed for ifc_reset_connections API in netutils
Code using ifc_reset_connections api needs to have access to predefined masks for reset_mask parameter Change-Id: I90bc5e1b62ae4a88501c8ad4e353c0d93d319579
-rw-r--r--include/netutils/ifc.h3
-rw-r--r--libnetutils/ifc_utils.c4
2 files changed, 3 insertions, 4 deletions
diff --git a/include/netutils/ifc.h b/include/netutils/ifc.h
index 67a4a45..3574f7f 100644
--- a/include/netutils/ifc.h
+++ b/include/netutils/ifc.h
@@ -34,6 +34,9 @@ extern int ifc_down(const char *name);
extern int ifc_enable(const char *ifname);
extern int ifc_disable(const char *ifname);
+#define RESET_IPV4_ADDRESSES 0x01
+#define RESET_IPV6_ADDRESSES 0x02
+#define RESET_ALL_ADDRESSES (RESET_IPV4_ADDRESSES | RESET_IPV6_ADDRESSES)
extern int ifc_reset_connections(const char *ifname, const int reset_mask);
extern int ifc_get_addr(const char *name, in_addr_t *addr);
diff --git a/libnetutils/ifc_utils.c b/libnetutils/ifc_utils.c
index 186b98c..50095ab 100644
--- a/libnetutils/ifc_utils.c
+++ b/libnetutils/ifc_utils.c
@@ -600,10 +600,6 @@ int ifc_disable(const char *ifname)
return result;
}
-#define RESET_IPV4_ADDRESSES 0x01
-#define RESET_IPV6_ADDRESSES 0x02
-#define RESET_ALL_ADDRESSES (RESET_IPV4_ADDRESSES | RESET_IPV6_ADDRESSES)
-
int ifc_reset_connections(const char *ifname, const int reset_mask)
{
#ifdef HAVE_ANDROID_OS