Home
last modified time | relevance | path

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

/ohos5.0/foundation/communication/dhcp/services/dhcp_server/src/
H A Daddress_utils.cpp56 uint32_t lastIp = LastIpAddress(currIp, netmask); in NextIpAddress() local
59 if (currIp == lastIp || currIp == broadcast) { in NextIpAddress()
66 if (next && nextIp > htonl(lastIp)) { in NextIpAddress()
67 nextIp = htonl(network) + (nextIp - htonl(lastIp)); in NextIpAddress()
81 uint32_t lastIp = htonl(network) + HostTotal(netmask); in LastIpAddress() local
82 if (lastIp) { in LastIpAddress()
83 lastIp -= 1; in LastIpAddress()
85 return htonl(lastIp); in LastIpAddress()