Searched defs:UdpHdr (Results 1 - 2 of 2) sorted by relevance

/vbox/src/VBox/NetworkServices/NetLib/
H A DVBoxNetUDP.cpp221 RTNETUDP UdpHdr; local
222 UdpHdr.uh_sport = RT_H2BE_U16(uSrcPort);
223 UdpHdr.uh_dport = RT_H2BE_U16(uDstPort);
224 UdpHdr.uh_ulen = RT_H2BE_U16((uint16_t)(cbData + sizeof(RTNETUDP)));
226 UdpHdr.uh_sum = 0; /* pretend checksumming is disabled */
228 UdpHdr.uh_sum = RTNetIPv4UDPChecksum(&IpHdr, &UdpHdr, pvData);
231 aSegs[2].pv = &UdpHdr;
232 aSegs[2].cb = sizeof(UdpHdr);
/vbox/src/VBox/Devices/Network/slirp/
H A Dtftp.c88 struct udphdr UdpHdr; member in struct:TFTPIPHDR
264 cbTftpRRQRaw = RT_H2N_U16(pcTftpIpHeader->UdpHdr.uh_ulen) + sizeof(struct ip) - RT_OFFSETOF(TFTPIPHDR, Core);
362 pTftpSession->u16ClientPort = pcTftpIpHeader->UdpHdr.uh_sport;
388 if (pTftpSession->u16ClientPort == pcTftpIpHeader->UdpHdr.uh_sport)
470 saddr.sin_port = pcTftpIpHeaderRecv->UdpHdr.uh_dport;

Completed in 45 milliseconds