diff options
author | Alex Yakavenka <ayakav@codeaurora.org> | 2011-11-08 20:25:23 +0900 |
---|---|---|
committer | android code review <noreply-gerritcodereview@google.com> | 2012-08-15 15:50:25 -0700 |
commit | 091c21c92c6bdb49b56c4045615159ea144a42f0 (patch) | |
tree | f05a3ddd6e64327508d3302a80b592d77d23c76f /include | |
parent | 2290dd418b4ddcb12027fa4616affe64eb92ad1e (diff) | |
download | system_core-091c21c92c6bdb49b56c4045615159ea144a42f0.tar.gz system_core-091c21c92c6bdb49b56c4045615159ea144a42f0.tar.bz2 system_core-091c21c92c6bdb49b56c4045615159ea144a42f0.zip |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/netutils/ifc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/netutils/ifc.h b/include/netutils/ifc.h index 67a4a4564..3574f7f23 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); |