Home
last modified time | relevance | path

Searched refs:beginIp (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/foundation/communication/dhcp/test/unittest/services/dhcp_server/unittest/
H A Daddress_utils_test.cpp153 uint32_t beginIp = ParseIpAddr("192.168.100.100"); variable
154 ASSERT_TRUE(beginIp != 0);
155 uint32_t endIp = LastIpAddress(beginIp, testNetmask);
165 EXPECT_FALSE(IpInRange(testIp1, beginIp, endIp, testNetmask));
166 EXPECT_FALSE(IpInRange(testIp2, beginIp, endIp, testNetmask));
167 EXPECT_TRUE(IpInRange(testIp3, beginIp, endIp, testNetmask));
H A Ddhcp_s_server_test.cpp76 uint32_t beginIp = ParseIpAddr("192.168.189.100"); in InitServerConfig() local
78 if (serverId == 0 || netmask == 0 || beginIp == 0 || endIp == 0) { in InitServerConfig()
93 config->pool.beginAddress = beginIp; in InitServerConfig()
H A Ddhcp_address_pool_test.cpp54 uint32_t beginIp = ParseIpAddr("192.168.100.100"); in SamplePoolConfig() local
59 if (beginIp != 0 && endIp != 0 && netmask != 0 && gateway != 0) { in SamplePoolConfig()
60 testPool.addressRange.beginAddress = beginIp; in SamplePoolConfig()
/ohos5.0/foundation/communication/dhcp/services/dhcp_server/src/
H A Daddress_utils.cpp93 uint32_t beginIp = FirstIpAddress(network, netmask); in IpInNetwork() local
97 if (ip >= beginIp && ip <= broadCast) { in IpInNetwork()
104 int IpInRange(uint32_t ip, uint32_t beginIp, uint32_t endIp, uint32_t netmask) in IpInRange() argument
107 uint32_t firstNet = NetworkAddress(beginIp, netmask); in IpInRange()
112 if (ip >= beginIp && ip <= endIp) { in IpInRange()
H A Ddhcp_address_pool.cpp138 uint32_t beginIp = pool->addressRange.beginAddress; in CheckRangeAvailability() local
140 if (IpInRange(distIp, beginIp, endIp, pool->netmask)) { in CheckRangeAvailability()
493 uint32_t beginIp = pool->addressRange.beginAddress; in LoadBindingRecoders() local
506 if (IpInRange(bind.ipAddress, beginIp, endIp, netmask)) { in LoadBindingRecoders()
/ohos5.0/foundation/communication/dhcp/services/dhcp_server/include/
H A Daddress_utils.h35 int IpInRange(uint32_t ip, uint32_t beginIp, uint32_t endIp, uint32_t netmask);
/ohos5.0/foundation/communication/dhcp/test/fuzztest/addressutils_fuzzer/
H A Daddressutils_fuzzer.cpp82 uint32_t beginIp = static_cast<uint32_t>(data[index++]); in IpInRangeTest() local
85 IpInRange(ip, beginIp, endIp, netmask); in IpInRangeTest()
/ohos5.0/foundation/communication/dhcp/services/dhcp_server/etc/
H A Ddhcpd.conf.sample31 # Address Range: {beginIp},{endIp}