Lines Matching refs:props
261 void StaticIPParameters::ApplyTo(IPConfig::Properties* props) {
262 if (props->address_family == IPAddress::kFamilyUnknown) {
266 props->address_family = IPAddress::kFamilyIPv4;
269 ApplyString(kAddressProperty, &props->address);
270 ApplyString(kGatewayProperty, &props->gateway);
271 ApplyInt(kMtuProperty, &props->mtu);
272 ApplyStrings(kNameServersProperty, &props->dns_servers);
273 ApplyString(kPeerAddressProperty, &props->peer_address);
274 ApplyInt(kPrefixlenProperty, &props->subnet_prefix);
277 void StaticIPParameters::RestoreTo(IPConfig::Properties* props) {
278 props->address = saved_args_.LookupString(kAddressProperty, "");
279 props->gateway = saved_args_.LookupString(kGatewayProperty, "");
280 props->mtu = saved_args_.LookupInt(kMtuProperty, 0);
281 props->dns_servers.clear();
283 props->dns_servers = saved_args_.GetStrings(kNameServersProperty);
285 props->peer_address = saved_args_.LookupString(kPeerAddressProperty, "");
286 props->subnet_prefix = saved_args_.LookupInt(kPrefixlenProperty, 0);