Lines Matching refs:udp
90 struct udphdr udp; in send_packet() local
100 ip.tot_len = htons(sizeof(ip) + sizeof(udp) + size); in send_packet()
110 udp.source = htons(sport); in send_packet()
111 udp.dest = htons(dport); in send_packet()
112 udp.len = htons(sizeof(udp) + size); in send_packet()
113 udp.check = 0; in send_packet()
120 temp = udp.len; in send_packet()
124 udpsum = checksum(&udp, sizeof(udp), udpsum); in send_packet()
128 udp.check = finish_sum(udpsum); in send_packet()
132 iov[1].iov_base = (char *)&udp; in send_packet()
133 iov[1].iov_len = sizeof(udp); in send_packet()
159 struct udphdr udp; in receive_packet() member
193 } else if (packet.udp.dest != htons(PORT_BOOTP_CLIENT)) { in receive_packet()
195 ALOGD("UDP dest port (%d) is not DHCP client", ntohs(packet.udp.dest)); in receive_packet()
217 dhcp_size = ntohs(packet.udp.len) - sizeof(packet.udp); in receive_packet()
239 packet.ip.tot_len = packet.udp.len; in receive_packet()
240 temp = packet.udp.check; in receive_packet()
241 packet.udp.check = 0; in receive_packet()
243 packet.udp.check = temp; in receive_packet()