diff options
Diffstat (limited to 'slirp/ctl.h')
-rw-r--r-- | slirp/ctl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/slirp/ctl.h b/slirp/ctl.h index 4a8576d..854ae9a 100644 --- a/slirp/ctl.h +++ b/slirp/ctl.h @@ -2,6 +2,9 @@ #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" |