1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Added DHCP::hostname.

This commit is contained in:
Matias Fontanini
2014-04-01 10:22:05 -03:00
parent 7c8aefccfe
commit 10421fe945
3 changed files with 35 additions and 1 deletions

View File

@@ -225,11 +225,18 @@ TEST_F(DHCPTest, DNSOption) {
TEST_F(DHCPTest, DomainNameOption) {
DHCP dhcp;
string domain = "libtins.test.domain", domain_found;
string domain = "libtins.test.domain";
dhcp.domain_name(domain);
EXPECT_EQ(domain, dhcp.domain_name());
}
TEST_F(DHCPTest, HostnameOption) {
DHCP dhcp;
string hostname = "libtins-hostname";
dhcp.hostname(hostname);
EXPECT_EQ(hostname, dhcp.hostname());
}
TEST_F(DHCPTest, BroadcastOption) {
DHCP dhcp;
IPv4Address ip = "192.168.0.1", ip_found;