Home
last modified time | relevance | path

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

/external/toybox/toys/pending/
Ddhcp.c172 } dhcp_raw_t; typedef
652 dhcp_raw_t packet; in read_raw()
722 dhcp_raw_t packet; in send_raw()
726 memset(&packet, 0, sizeof(dhcp_raw_t)); in send_raw()
751 packet.udph.len = htons(sizeof(dhcp_raw_t) - sizeof(struct iphdr) - padding); in send_raw()
753 packet.udph.check = dhcp_checksum(&packet, sizeof(dhcp_raw_t) - padding); in send_raw()
754 packet.iph.tot_len = htons(sizeof(dhcp_raw_t) - padding); in send_raw()
760 result = sendto(fd, &packet, sizeof(dhcp_raw_t) - padding, 0, in send_raw()
1014 pend = dhcpc_addmaxsize(pend, htons(sizeof(dhcp_raw_t))); in dhcpc_sendmsg()
1026 pend = dhcpc_addmaxsize(pend, htons(sizeof(dhcp_raw_t))); in dhcpc_sendmsg()
Ddhcpd.c166 } dhcp_raw_t; typedef
907 dhcp_raw_t packet; in send_packet()
912 memset(&packet, 0, sizeof(dhcp_raw_t)); in send_packet()
938 packet.udph.len = htons(sizeof(dhcp_raw_t) - sizeof(struct iphdr) - padding); in send_packet()
940 packet.udph.check = dhcp_checksum(&packet, sizeof(dhcp_raw_t) - padding); in send_packet()
941 packet.iph.tot_len = htons(sizeof(dhcp_raw_t) - padding); in send_packet()
947 result = sendto(fd, &packet, sizeof(dhcp_raw_t) - padding, 0, in send_packet()