Lines Matching defs:bytes
38 /* Calculates the network checksum by 2 bytes. */
43 /* Calculate the network checksum based on the remaining bytes. */
240 "dhcpPackLen:%{public}d fd:%{public}d, index:%{public}d, bytes:%{public}d.",
275 DHCP_LOGI("SendDhcpPacket fd:%{public}d, bytes:%{public}d.", nFd, static_cast<int>(nBytes));
345 int CheckPacketIpSum(struct UdpDhcpPacket *pPacket, const int bytes)
351 if (CheckUdpPacket(pPacket, bytes) != SOCKET_OPT_SUCCESS) {
363 DHCP_LOGI("CheckPacketIpSum() success, bytes:%{public}d.", bytes);
367 int CheckPacketUdpSum(struct UdpDhcpPacket *pPacket, const int bytes)
387 uint16_t uCheckSum = GetCheckSum((uint16_t *)pPacket, bytes);
392 DHCP_LOGI("CheckPacketUdpSum() success, bytes:%{public}d.", bytes);
402 /* Get and check udp dhcp packet bytes. */