Searched refs:dhcp_checksum (Results 1 – 2 of 2) sorted by relevance
263 static uint16_t dhcp_checksum(void *addr, int count) in dhcp_checksum() function682 if (check != dhcp_checksum(&packet.iph, sizeof(packet.iph))) { in read_raw()690 if (check && check != dhcp_checksum(&packet, bytes)) { in read_raw()753 packet.udph.check = dhcp_checksum(&packet, sizeof(dhcp_raw_t) - padding); in send_raw()758 packet.iph.check = dhcp_checksum(&packet.iph, sizeof(packet.iph)); in send_raw()
341 static uint16_t dhcp_checksum(void *addr, int count) in dhcp_checksum() function888 packet.udph.check = dhcp_checksum(&packet, sizeof(dhcp6_raw_t) - padding); in send_packet6()940 packet.udph.check = dhcp_checksum(&packet, sizeof(dhcp_raw_t) - padding); in send_packet()945 packet.iph.check = dhcp_checksum(&packet.iph, sizeof(packet.iph)); in send_packet()