aboutsummaryrefslogtreecommitdiffstats
path: root/slirp2/ctl.h
diff options
context:
space:
mode:
Diffstat (limited to 'slirp2/ctl.h')
-rw-r--r--slirp2/ctl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/slirp2/ctl.h b/slirp2/ctl.h
new file mode 100644
index 0000000..854ae9a
--- /dev/null
+++ b/slirp2/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"