mirror of
https://github.com/mfontanini/libtins
synced 2026-01-23 02:35:57 +01:00
Added DHCP::hostname.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user