Searched refs:dhcp_packet_checksum (Results 1 – 3 of 3) sorted by relevance
64 uint16_t dhcp_packet_checksum(uint8_t *buf, size_t len) { in dhcp_packet_checksum() function121 packet->udp.check = dhcp_packet_checksum((uint8_t*)&packet->ip.ttl, len - 8); in dhcp_packet_append_ip_headers()125 packet->ip.check = dhcp_packet_checksum((uint8_t*)&packet->ip, DHCP_IP_SIZE); in dhcp_packet_append_ip_headers()176 if (dhcp_packet_checksum((uint8_t*)&packet->ip, hdrlen)) in dhcp_packet_verify_headers()184 if (dhcp_packet_checksum((uint8_t*)&packet->ip.ttl, in dhcp_packet_verify_headers()
135 assert_se(dhcp_packet_checksum((uint8_t*)&buf, 20) == be16toh(0x78ae)); in test_checksum()210 udp_check = ~dhcp_packet_checksum((uint8_t*)&discover->ip.ttl, len - 8); in dhcp_network_send_raw_socket()216 ip_check = ~dhcp_packet_checksum((uint8_t*)&discover->ip, sizeof(discover->ip)); in dhcp_network_send_raw_socket()
59 uint16_t dhcp_packet_checksum(uint8_t *buf, size_t len);