Home | History | Annotate | Download | only in dhcp

Lines Matching refs:conf

298   KeyValueStore conf;
299 conf.SetUint(DHCPv4Config::kConfigurationKeyIPAddress, 0x01020304);
300 conf.SetUint8(DHCPv4Config::kConfigurationKeySubnetCIDR, 16);
301 conf.SetUint(DHCPv4Config::kConfigurationKeyBroadcastAddress, 0x10203040);
306 conf.SetUint32s(DHCPv4Config::kConfigurationKeyRouters, routers);
312 conf.SetUint32s(DHCPv4Config::kConfigurationKeyDNS, dns);
314 conf.SetString(DHCPv4Config::kConfigurationKeyDomainName, "domain-name");
319 conf.SetStrings(DHCPv4Config::kConfigurationKeyDomainSearch, search);
321 conf.SetUint16(DHCPv4Config::kConfigurationKeyMTU, 600);
322 conf.SetString(DHCPv4Config::kConfigurationKeyHostname, "hostname");
323 conf.SetString("UnknownKey", "UnknownValue");
328 ASSERT_TRUE(config_->ParseConfiguration(conf, &properties));
346 KeyValueStore conf;
347 conf.SetUint16(DHCPv4Config::kConfigurationKeyMTU, 576);
352 ASSERT_TRUE(config_->ParseConfiguration(conf, &properties));
358 conf.RemoveUint16(DHCPv4Config::kConfigurationKeyMTU);
359 conf.SetUint16(DHCPv4Config::kConfigurationKeyMTU, 1499);
362 ASSERT_TRUE(config_->ParseConfiguration(conf, &properties));
368 conf.RemoveUint16(DHCPv4Config::kConfigurationKeyMTU);
369 conf.SetUint16(DHCPv4Config::kConfigurationKeyMTU, 577);
372 ASSERT_TRUE(config_->ParseConfiguration(conf, &properties));
532 KeyValueStore conf;
533 conf.SetUint(DHCPv4Config::kConfigurationKeyIPAddress, 0x01020304);
536 config_->ProcessEventSignal(DHCPv4Config::kReasonFail, conf);
548 KeyValueStore conf;
549 conf.SetUint(DHCPv4Config::kConfigurationKeyIPAddress, ++address_octet);
552 conf.SetUint(DHCPv4Config::kConfigurationKeyLeaseTime, kLeaseTime);
556 config_->ProcessEventSignal(reason, conf);
567 KeyValueStore conf;
568 conf.SetUint(DHCPv4Config::kConfigurationKeyIPAddress, 0x01020304);
574 config_->ProcessEventSignal(DHCPv4Config::kReasonFail, conf);
579 KeyValueStore conf;
580 conf.SetUint(DHCPv4Config::kConfigurationKeyIPAddress, 0x01020304);
582 conf.SetUint(DHCPv4Config::kConfigurationKeyLeaseTime, kLeaseTime);
590 config_->ProcessEventSignal(DHCPv4Config::kReasonBound, conf);
595 KeyValueStore conf;
596 conf.SetUint(DHCPv4Config::kConfigurationKeyIPAddress, 0x01020304);
600 config_->ProcessEventSignal(kReasonUnknown, conf);
606 KeyValueStore conf;
607 conf.SetUint(DHCPv4Config::kConfigurationKeyIPAddress, 0x01020304);
613 config_->ProcessEventSignal(DHCPv4Config::kReasonGatewayArp, conf);
623 config_->ProcessEventSignal(DHCPv4Config::kReasonRenew, conf);
631 KeyValueStore conf;
632 conf.SetUint(DHCPv4Config::kConfigurationKeyIPAddress, 0x01020304);
636 config_->ProcessEventSignal(DHCPv4Config::kReasonGatewayArp, conf);
640 config_->ProcessEventSignal(DHCPv4Config::kReasonNak, conf);