diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-08-08 14:21:00 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-08-08 16:28:39 +0800 |
commit | f53d1e4dc6735b90806ceed54f9d73572b5960f5 (patch) | |
tree | e90000c8c788ebe0599dea91ffc87632abce06f1 /lib/pb-config/pb-config.h | |
parent | 2b41985dde73e71daad90c36fa5d06c199da3ae1 (diff) | |
download | talos-petitboot-f53d1e4dc6735b90806ceed54f9d73572b5960f5.tar.gz talos-petitboot-f53d1e4dc6735b90806ceed54f9d73572b5960f5.zip |
config: DNS configuration isn't interface-specific
Rather than attaching DNS configuration to an interface, separate it out
into general network config.
The powerpc-nvram storage exepects dns as a "dns,server,..." string.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'lib/pb-config/pb-config.h')
-rw-r--r-- | lib/pb-config/pb-config.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pb-config/pb-config.h b/lib/pb-config/pb-config.h index 748b409..6a64ef1 100644 --- a/lib/pb-config/pb-config.h +++ b/lib/pb-config/pb-config.h @@ -19,7 +19,6 @@ struct interface_config { struct { char *address; char *gateway; - char *dns; } static_config; }; }; @@ -27,6 +26,8 @@ struct interface_config { struct network_config { struct interface_config **interfaces; int n_interfaces; + const char **dns_servers; + int n_dns_servers; }; struct config { |