Home
last modified time | relevance | path

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

/external/toybox/toys/pending/
Ddhcp.c263 static uint16_t dhcp_checksum(void *addr, int count) in dhcp_checksum() function
679 if (dhcp_checksum(&packet.iph, sizeof(packet.iph)) != 0) { in read_raw()
690 if (packet.udph.check != 0 && dhcp_checksum(&packet, bytes) != 0) { 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()
Ddhcpd.c341 static uint16_t dhcp_checksum(void *addr, int count) in dhcp_checksum() function
888 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()