summaryrefslogtreecommitdiffstats
path: root/include/netutils/ifc.h
diff options
context:
space:
mode:
authorEd Heyl <ed@google.com>2012-07-28 11:48:12 -0700
committerEd Heyl <ed@google.com>2012-07-28 11:48:12 -0700
commit3cac204d3537c6a356c922bffb07fcb97f5bb0c7 (patch)
tree710f7bb28670f8df39ab4529c52fce812b471129 /include/netutils/ifc.h
parentce8ffda06397f4a3f8c75f8e2c41f8883625e4f3 (diff)
parentc2dcdc2024ac7487f9773b9b9a4d20bf78e5b7a1 (diff)
downloadsystem_core-3cac204d3537c6a356c922bffb07fcb97f5bb0c7.zip
system_core-3cac204d3537c6a356c922bffb07fcb97f5bb0c7.tar.gz
system_core-3cac204d3537c6a356c922bffb07fcb97f5bb0c7.tar.bz2
Merge remote-tracking branch 'goog/jb-dev-mako' into jb-mr1-dev
Diffstat (limited to 'include/netutils/ifc.h')
-rw-r--r--include/netutils/ifc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/netutils/ifc.h b/include/netutils/ifc.h
index 9079ab4..1f5421d 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);