Home
last modified time | relevance | path

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

/device/generic/goldfish/dhcp/common/
Dsocket.cpp173 struct udphdr udp; in sendRawUdp() local
178 ip.tot_len = htons(sizeof(ip) + sizeof(udp) + message.size()); in sendRawUdp()
188 udp.source = htons(sourcePort); in sendRawUdp()
189 udp.dest = htons(destinationPort); in sendRawUdp()
190 udp.len = htons(sizeof(udp) + message.size()); in sendRawUdp()
191 udp.check = 0; in sendRawUdp()
197 udpChecksum = addChecksum(udp.len, udpChecksum); in sendRawUdp()
198 udpChecksum = addChecksum(udp, udpChecksum); in sendRawUdp()
200 udp.check = finishChecksum(udpChecksum); in sendRawUdp()
206 iov[1].iov_base = static_cast<void*>(&udp); in sendRawUdp()
[all …]
/device/google/cuttlefish/common/libs/utils/
Dnetwork.cpp247 udphdr udp; member
279 frame.ip.tot_len = htobe16(sizeof(frame.ip) + sizeof(frame.udp) in ReleaseDhcp4()
285 frame.udp.source = htobe16(68); in ReleaseDhcp4()
286 frame.udp.dest = htobe16(67); in ReleaseDhcp4()
287 frame.udp.len = htobe16(sizeof(frame.udp) + sizeof(frame.dhcp)); in ReleaseDhcp4()