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
This commit is contained in:
parent
64b7c2cca0
commit
7c3d1c291a
2 changed files with 3 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue