aboutsummaryrefslogtreecommitdiffstats
path: root/slirp-android/ctl.h
diff options
context:
space:
mode:
Diffstat (limited to 'slirp-android/ctl.h')
-rw-r--r--slirp-android/ctl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/slirp-android/ctl.h b/slirp-android/ctl.h
new file mode 100644
index 0000000..854ae9a
--- /dev/null
+++ b/slirp-android/ctl.h
@@ -0,0 +1,10 @@
+#define CTL_CMD 0
+#define CTL_EXEC 1
+#define CTL_ALIAS 2
+#define CTL_DNS 3
+/* NOTE: DNS_ADDR_MAX addresses, starting from CTL_DNS, are reserved */
+
+#define CTL_IS_DNS(x) ((unsigned)((x)-CTL_DNS) < (unsigned)dns_addr_count)
+
+#define CTL_SPECIAL "10.0.2.0"
+#define CTL_LOCAL "10.0.2.15"