Lines Matching refs:udp
93 struct udphdr udp; in send_packet() local
103 ip.tot_len = htons(sizeof(ip) + sizeof(udp) + size); in send_packet()
113 udp.source = htons(sport); in send_packet()
114 udp.dest = htons(dport); in send_packet()
115 udp.len = htons(sizeof(udp) + size); in send_packet()
116 udp.check = 0; in send_packet()
123 temp = udp.len; in send_packet()
127 udpsum = checksum(&udp, sizeof(udp), udpsum); in send_packet()
131 udp.check = finish_sum(udpsum); in send_packet()
135 iov[1].iov_base = (char *)&udp; in send_packet()
136 iov[1].iov_len = sizeof(udp); in send_packet()
162 struct udphdr udp; in receive_packet() member
196 } else if (packet.udp.dest != htons(PORT_BOOTP_CLIENT)) { in receive_packet()
198 ALOGD("UDP dest port (%d) is not DHCP client", ntohs(packet.udp.dest)); in receive_packet()
220 dhcp_size = ntohs(packet.udp.len) - sizeof(packet.udp); in receive_packet()
242 packet.ip.tot_len = packet.udp.len; in receive_packet()
243 temp = packet.udp.check; in receive_packet()
244 packet.udp.check = 0; in receive_packet()
246 packet.udp.check = temp; in receive_packet()